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