shairplay: refactor and move to pkgs/by-name

this shouldn't create any rebuilds
This commit is contained in:
quantenzitrone
2026-02-18 06:12:06 +01:00
parent 1fb604182f
commit 76b40726e4
2 changed files with 6 additions and 8 deletions
@@ -4,11 +4,11 @@
fetchFromGitHub,
autoreconfHook,
pkg-config,
avahi,
avahi-compat,
libao,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "shairplay-unstable";
version = "2018-08-24";
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
];
buildInputs = [
avahi
avahi-compat
libao
];
@@ -34,16 +34,16 @@ stdenv.mkDerivation rec {
# the build will fail without complaining about a reference to /tmp
preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
patchelf \
--set-rpath "${lib.makeLibraryPath buildInputs}:$out/lib" \
--set-rpath "${lib.makeLibraryPath finalAttrs.buildInputs}:$out/lib" \
$out/bin/shairplay
'';
meta = {
inherit (src.meta) homepage;
inherit (finalAttrs.src.meta) homepage;
description = "Apple AirPlay and RAOP protocol server";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ peterhoeg ];
platforms = lib.platforms.unix;
mainProgram = "shairplay";
};
}
})
-2
View File
@@ -8686,8 +8686,6 @@ with pkgs;
scalene = with python3Packages; toPythonApplication scalene;
shairplay = callPackage ../servers/shairplay { avahi = avahi-compat; };
shairport-sync-airplay2 = shairport-sync.override {
enableAirplay2 = true;
};