24 # FIXME: Replace with gnome.rygel once hqplayerd releases a new version.
25 rygel-hqplayerd = inputs.rygel or (callPackage ./rygel.nix { });
27 stdenv.mkDerivation rec {
32 url = "https://www.signalyst.eu/bins/${pname}/fc37/${pname}-${version}.fc37.x86_64.rpm";
33 hash = "sha256-yfdgsQu2w56apq5lyD0JcEkM9/EtlfdZQ9I5x1BBOcU=";
37 ${rpmextract}/bin/rpmextract $src
40 nativeBuildInputs = [ addDriverRunpath autoPatchelfHook rpmextract ];
54 llvmPackages_14.openmp
67 cp -rv ./usr/bin $out/bin
71 cp -rv ./opt/hqplayerd/lib $out
75 cp -rv ./etc/hqplayer $out/etc/
77 # systemd service file
78 mkdir -p $out/lib/systemd
79 cp -rv ./usr/lib/systemd/system $out/lib/systemd/
82 mkdir -p $out/share/doc
83 cp -rv ./usr/share/doc/hqplayerd $out/share/doc/
85 # misc service support files
87 cp -rv ./var/lib/hqplayer $out/var/lib/
92 substituteInPlace $out/lib/systemd/system/hqplayerd.service \
93 --replace /usr/bin/hqplayerd $out/bin/hqplayerd \
94 --replace "NetworkManager-wait-online.service" ""
97 # NB: addDriverRunpath needs to run _after_ autoPatchelfHook, which runs in
98 # postFixup, so we tack it on here.
99 doInstallCheck = true;
100 installCheckPhase = ''
101 addDriverRunpath $out/bin/hqplayerd
102 $out/bin/hqplayerd --version
106 rygel = rygel-hqplayerd;
110 homepage = "https://www.signalyst.com/custom.html";
111 description = "High-end upsampling multichannel software embedded HD-audio player";
112 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
113 license = licenses.unfree;
114 platforms = [ "x86_64-linux" ];
115 maintainers = with maintainers; [ lovesegfault ];