2023-03-21 14:21:42 +00:00
|
|
|
{ faad2
|
2021-09-19 13:27:29 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, flac
|
|
|
|
, lame
|
2023-03-21 14:21:42 +00:00
|
|
|
, lib
|
|
|
|
, makeWrapper
|
2021-09-19 13:27:29 +00:00
|
|
|
, monkeysAudio
|
2023-07-06 08:40:45 +00:00
|
|
|
, perlPackages
|
2023-03-21 14:21:42 +00:00
|
|
|
, sox
|
|
|
|
, stdenv
|
2021-09-19 13:27:29 +00:00
|
|
|
, wavpack
|
2023-03-21 14:21:42 +00:00
|
|
|
, zlib
|
2021-09-19 13:27:29 +00:00
|
|
|
}:
|
2017-03-02 19:38:06 +00:00
|
|
|
|
2023-07-06 08:40:45 +00:00
|
|
|
perlPackages.buildPerlPackage rec {
|
2019-06-20 13:07:56 +00:00
|
|
|
pname = "slimserver";
|
2023-03-21 14:21:42 +00:00
|
|
|
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;
|
2023-03-21 14:21:42 +00:00
|
|
|
hash = "sha256-yMFOwh/oPiJnUsKWBGvd/GZLjkWocMAUK0r+Hx/SUPo=";
|
2017-03-02 19:38:06 +00:00
|
|
|
};
|
|
|
|
|
2022-08-15 03:40:21 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-03-02 19:38:06 +00:00
|
|
|
|
2023-07-06 08:40:45 +00:00
|
|
|
buildInputs = [ perlPackages.CryptOpenSSLRSA perlPackages.IOSocketSSL ];
|
2017-03-14 21:34:12 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
rm -rf Bin
|
|
|
|
touch Makefile.PL
|
2018-05-19 08:20:00 +00:00
|
|
|
'';
|
2017-03-14 21:34:12 +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 \
|
2023-03-21 14:21:42 +00:00
|
|
|
--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
|
|
|
'';
|
2017-03-14 21:34:12 +00:00
|
|
|
|
|
|
|
outputs = [ "out" ];
|
2017-03-02 19:38:06 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
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!
|
2023-03-21 14:21:42 +00:00
|
|
|
# https://github.com/Logitech/slimserver/blob/public/8.3/License.txt
|
2017-03-16 19:59:12 +00:00
|
|
|
license = licenses.unfree;
|
2023-03-24 12:56:10 +00:00
|
|
|
maintainers = with maintainers; [ adamcstephens jecaro ];
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2017-03-02 19:38:06 +00:00
|
|
|
};
|
|
|
|
}
|