diff options
author | Steve Elliott <1699155+Steell@users.noreply.github.com> | 2019-06-21 14:58:20 -0400 |
---|---|---|
committer | Steve Elliott <1699155+Steell@users.noreply.github.com> | 2019-06-25 09:34:07 -0400 |
commit | 725e2793dd1c3e57e46d1a282d6d623c285bb95f (patch) | |
tree | d041c307bfba46bb1638b50b8bbeb8a6b579436a /pkgs/servers/roon-server | |
parent | 463bd416f0d27a6916f9319f76c5758de1068561 (diff) | |
download | nixpkgs-725e2793dd1c3e57e46d1a282d6d623c285bb95f.tar nixpkgs-725e2793dd1c3e57e46d1a282d6d623c285bb95f.tar.gz nixpkgs-725e2793dd1c3e57e46d1a282d6d623c285bb95f.tar.bz2 nixpkgs-725e2793dd1c3e57e46d1a282d6d623c285bb95f.tar.lz nixpkgs-725e2793dd1c3e57e46d1a282d6d623c285bb95f.tar.xz nixpkgs-725e2793dd1c3e57e46d1a282d6d623c285bb95f.tar.zst nixpkgs-725e2793dd1c3e57e46d1a282d6d623c285bb95f.zip |
roon-server: init at 100600401
Diffstat (limited to 'pkgs/servers/roon-server')
-rw-r--r-- | pkgs/servers/roon-server/default.nix | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/servers/roon-server/default.nix b/pkgs/servers/roon-server/default.nix new file mode 100644 index 00000000000..64b212eb49f --- /dev/null +++ b/pkgs/servers/roon-server/default.nix @@ -0,0 +1,65 @@ +{ alsaLib, alsaUtils, cifs-utils, fetchurl, ffmpeg, libav, mono, stdenv }: + +with stdenv.lib; +stdenv.mkDerivation rec { + name = "roon-server"; + version = "100600401"; + + src = fetchurl { + url = "http://download.roonlabs.com/updates/stable/RoonServer_linuxx64_${version}.tar.bz2"; + sha256 = "121mmdh35q4bpgsqhcps6a6q1f4ld9v4hq9gp181bf2n779pk8sh"; + }; + + installPhase = '' + runHook preInstall + + # Check script + sed -i '3i PATH=$PATH:${makeBinPath [ cifs-utils ffmpeg libav ]}' check.sh + sed -i '/check_ulimit$/d' check.sh + + # Start script + sed -i '3i PATH=$PATH:${makeBinPath [ alsaUtils cifs-utils ffmpeg libav ]}' start.sh + + # Debug logging + sed -i '/--debug--gc=sgen --server/exec "$HARDLINK" --debug --gc=sgen --server "$SCRIPT.exe" "$@" -storagetrace -watchertrace' Appliance/RoonAppliance + + # Binaries + sed -i '/# boost ulimit/,+2 d' Appliance/RAATServer + sed -i '/# boost ulimit/,+2 d' Appliance/RoonAppliance + sed -i '/# boost ulimit/,+2 d' Server/RoonServer + sed -i '/ln -sf/ d' Appliance/RAATServer + sed -i '/ln -sf/ d' Appliance/RoonAppliance + sed -i '/ln -sf/ d' Server/RoonServer + mkdir -p $out/opt + mv * $out/opt + ln -sf $out/opt/RoonMono/bin/mono-sgen $out/opt/RoonMono/bin/RoonServer + ln -sf $out/opt/RoonMono/bin/mono-sgen $out/opt/RoonMono/bin/RoonAppliance + ln -sf $out/opt/RoonMono/bin/mono-sgen $out/opt/RoonMono/bin/RAATServer + + runHook postInstall + ''; + + preFixup = '' + patchelf \ + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ + --set-rpath "${alsaLib}/lib" \ + $out/opt/RoonMono/bin/mono-sgen + + # Checkers + patchelf \ + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ + --set-rpath "${alsaLib}/lib" \ + $out/opt/Appliance/check_alsa + patchelf \ + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ + $out/opt/Appliance/check_bincompat + ''; + + meta = { + description = "The music player for music lovers."; + homepage = https://roonlabs.com; + license = licenses.unfree; + maintainers = with maintainers; [ steell ]; + platforms = platforms.linux; + }; +} |