nixpkgs/pkgs/applications/audio/squeezelite/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, alsaLib, faad2, flac, libmad, libvorbis, makeWrapper, mpg123 }:
2016-06-11 12:45:24 +00:00
let
runtimeDeps = [ faad2 flac libmad libvorbis mpg123 ];
rpath = stdenv.lib.makeLibraryPath runtimeDeps;
in stdenv.mkDerivation {
2018-03-29 08:58:09 +00:00
name = "squeezelite-git-2018-08-14";
2016-06-11 12:45:24 +00:00
src = fetchFromGitHub {
2018-03-29 08:58:09 +00:00
owner = "ralph-irving";
repo = "squeezelite";
rev = "ecb6e3696a42113994640e5345d0b5ca2e77d28b";
sha256 = "0di3d5qy8fhawijq6bxy524fgffvzl08dprrws0fs2j1a70fs0fh";
2016-06-11 12:45:24 +00:00
};
buildInputs = [ alsaLib ] ++ runtimeDeps;
nativeBuildInputs = [ makeWrapper ];
2016-06-11 12:45:24 +00:00
2018-03-29 08:58:09 +00:00
enableParallelBuilding = true;
2016-06-11 12:45:24 +00:00
installPhase = ''
2018-03-29 08:58:09 +00:00
runHook preInstall
install -Dm755 -t $out/bin squeezelite
install -Dm644 -t $out/share/doc/squeezelite *.txt *.md
wrapProgram $out/bin/squeezelite --set LD_LIBRARY_PATH $RPATH
2018-03-29 08:58:09 +00:00
runHook postInstall
2016-06-11 12:45:24 +00:00
'';
meta = with stdenv.lib; {
description = "Lightweight headless squeezebox client emulator";
homepage = https://github.com/ralph-irving/squeezelite;
license = licenses.gpl3;
platforms = platforms.linux;
};
RPATH = rpath;
2016-06-11 12:45:24 +00:00
}