mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
hqplayerd: init at 4.24.0-61
This commit is contained in:
parent
f3c4d66679
commit
23023dffe2
89
pkgs/servers/hqplayerd/default.nix
Normal file
89
pkgs/servers/hqplayerd/default.nix
Normal file
@ -0,0 +1,89 @@
|
||||
{ stdenv
|
||||
, alsa-lib
|
||||
, autoPatchelfHook
|
||||
, cairo
|
||||
, fetchurl
|
||||
, flac
|
||||
, gnome
|
||||
, gssdp
|
||||
, gupnp
|
||||
, lib
|
||||
, libgmpris
|
||||
, llvmPackages_10
|
||||
, rpmextract
|
||||
, wavpack
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hqplayerd";
|
||||
version = "4.24.0-61";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.signalyst.eu/bins/${pname}/fc33/${pname}-${version}.fc33.x86_64.rpm";
|
||||
sha256 = "sha256-VouqkWRu9lcbCQNmXJayrsZZnhvM5xEZlUyBEkURBOQ=";
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
${rpmextract}/bin/rpmextract $src
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook rpmextract ];
|
||||
|
||||
buildInputs = [
|
||||
alsa-lib
|
||||
cairo
|
||||
flac
|
||||
gnome.rygel
|
||||
gssdp
|
||||
gupnp
|
||||
libgmpris
|
||||
llvmPackages_10.openmp
|
||||
wavpack
|
||||
];
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
# main executable
|
||||
mkdir -p $out/bin
|
||||
cp ./usr/bin/hqplayerd $out/bin
|
||||
|
||||
# udev rules
|
||||
mkdir -p $out/etc/udev/rules.d
|
||||
cp ./etc/udev/rules.d/50-taudio2.rules $out/etc/udev/rules.d
|
||||
|
||||
# kernel module cfgs
|
||||
mkdir -p $out/etc/modules-load.d
|
||||
cp ./etc/modules-load.d/taudio2.conf $out/etc/modules-load.d
|
||||
|
||||
# systemd service file
|
||||
mkdir -p $out/lib/systemd/system
|
||||
cp ./usr/lib/systemd/system/hqplayerd.service $out/lib/systemd/system
|
||||
|
||||
# documentation
|
||||
mkdir -p $out/share/doc/${pname}
|
||||
cp ./usr/share/doc/${pname}/* $out/share/doc/${pname}
|
||||
|
||||
# misc service support files
|
||||
mkdir -p $out/var/lib/${pname}
|
||||
cp -r ./var/hqplayer/web $out/var/lib/${pname}
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/lib/systemd/system/hqplayerd.service \
|
||||
--replace /usr/bin/hqplayerd $out/bin/hqplayerd
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
patchelf --replace-needed libomp.so.5 libomp.so $out/bin/hqplayerd
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.signalyst.com/custom.html";
|
||||
description = "High-end upsampling multichannel software embedded HD-audio player";
|
||||
changelog = "https://www.signalyst.eu/bins/${pname}/fc33/${pname}-${version}.fc33.x86_64.changes";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ lovesegfault ];
|
||||
};
|
||||
}
|
@ -19249,6 +19249,8 @@ in
|
||||
|
||||
home-assistant-cli = callPackage ../servers/home-assistant/cli.nix { };
|
||||
|
||||
hqplayerd = callPackage ../servers/hqplayerd { };
|
||||
|
||||
https-dns-proxy = callPackage ../servers/dns/https-dns-proxy { };
|
||||
|
||||
hydron = callPackage ../servers/hydron { };
|
||||
|
Loading…
Reference in New Issue
Block a user