nixpkgs/pkgs/servers/slimserver/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.3 KiB
Nix
Raw Normal View History

{ faad2
2021-09-19 13:27:29 +00:00
, fetchFromGitHub
, flac
, lame
, lib
, makeWrapper
2021-09-19 13:27:29 +00:00
, monkeysAudio
, perlPackages
, sox
, stdenv
2021-09-19 13:27:29 +00:00
, wavpack
, zlib
2021-09-19 13:27:29 +00:00
}:
2017-03-02 19:38:06 +00:00
perlPackages.buildPerlPackage rec {
pname = "slimserver";
version = "8.3.1";
2017-03-02 19:38:06 +00:00
2021-09-19 13:27:29 +00:00
src = fetchFromGitHub {
owner = "Logitech";
repo = "slimserver";
rev = version;
hash = "sha256-yMFOwh/oPiJnUsKWBGvd/GZLjkWocMAUK0r+Hx/SUPo=";
2017-03-02 19:38:06 +00:00
};
nativeBuildInputs = [ makeWrapper ];
2017-03-02 19:38:06 +00:00
buildInputs = [ perlPackages.CryptOpenSSLRSA perlPackages.IOSocketSSL ];
prePatch = ''
rm -rf Bin
touch Makefile.PL
2018-05-19 08:20:00 +00:00
'';
doCheck = false;
2017-03-02 19:38:06 +00:00
installPhase = ''
cp -r . $out
2018-05-19 08:20:00 +00:00
wrapProgram $out/slimserver.pl \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ zlib stdenv.cc.cc.lib ]}" \
2021-01-15 07:07:56 +00:00
--prefix PATH : "${lib.makeBinPath [ lame flac faad2 sox monkeysAudio wavpack ]}"
2017-03-02 19:38:06 +00:00
'';
outputs = [ "out" ];
2017-03-02 19:38:06 +00:00
meta = with lib; {
homepage = "https://github.com/Logitech/slimserver";
2017-03-02 19:38:06 +00:00
description = "Server for Logitech Squeezebox players. This server is also called Logitech Media Server";
2017-03-16 19:59:12 +00:00
# the firmware is not under a free license!
# https://github.com/Logitech/slimserver/blob/public/8.3/License.txt
2017-03-16 19:59:12 +00:00
license = licenses.unfree;
maintainers = with maintainers; [ adamcstephens jecaro ];
platforms = platforms.unix;
2017-03-02 19:38:06 +00:00
};
}