2017-03-16 18:54:27 +00:00
|
|
|
{ stdenv, buildPerlPackage, fetchurl
|
2017-03-02 19:38:06 +00:00
|
|
|
#, sqlite, expat, mp4v2, flac, spidermonkey_1_8_5, taglib, libexif, curl, ffmpeg, file
|
|
|
|
, perl, perlPackages }:
|
|
|
|
|
2017-03-14 21:34:12 +00:00
|
|
|
buildPerlPackage rec {
|
2017-03-02 19:38:06 +00:00
|
|
|
name = "slimserver-${version}";
|
2017-03-16 18:54:27 +00:00
|
|
|
version = "7.9.0";
|
2017-03-02 19:38:06 +00:00
|
|
|
|
2017-03-16 18:54:27 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Logitech/slimserver/archive/${version}.tar.gz";
|
|
|
|
sha256 = "07rhqipg7m28x0nqdd83nyzi88dp9cf8rr2pamdyrfcwyp1h1b44";
|
2017-03-02 19:38:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
perl
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.AnyEvent
|
2017-03-02 19:38:06 +00:00
|
|
|
perlPackages.AudioScan
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.CarpClan
|
|
|
|
perlPackages.CGI
|
2017-03-15 21:34:10 +00:00
|
|
|
perlPackages.ClassXSAccessor
|
2017-03-14 21:54:58 +00:00
|
|
|
perlPackages.DataDump
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.DataURIEncode
|
|
|
|
perlPackages.DBDSQLite
|
2017-03-14 20:20:55 +00:00
|
|
|
perlPackages.DBI
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.DBIxClass
|
2017-03-14 20:20:55 +00:00
|
|
|
perlPackages.DigestSHA1
|
|
|
|
perlPackages.EV
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.ExporterLite
|
|
|
|
perlPackages.FileBOM
|
2017-03-14 21:54:58 +00:00
|
|
|
perlPackages.FileCopyRecursive
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.FileNext
|
2017-03-15 21:34:10 +00:00
|
|
|
perlPackages.FileReadBackwards
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.FileSlurp
|
|
|
|
perlPackages.FileWhich
|
2017-03-14 20:20:55 +00:00
|
|
|
perlPackages.HTMLParser
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.HTTPCookies
|
2017-03-14 21:54:58 +00:00
|
|
|
perlPackages.HTTPDaemon
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.HTTPMessage
|
2017-03-02 19:38:06 +00:00
|
|
|
perlPackages.ImageScale
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.IOSocketSSL
|
|
|
|
perlPackages.IOString
|
2017-03-14 20:20:55 +00:00
|
|
|
perlPackages.JSONXSVersionOneAndTwo
|
|
|
|
perlPackages.Log4Perl
|
2017-03-15 21:34:10 +00:00
|
|
|
perlPackages.LWPUserAgent
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.NetHTTP
|
|
|
|
perlPackages.ProcBackground
|
2017-03-14 20:20:55 +00:00
|
|
|
perlPackages.SubName
|
2017-03-15 21:39:03 +00:00
|
|
|
perlPackages.TemplateToolkit
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.TextUnidecode
|
|
|
|
perlPackages.TieCacheLRU
|
|
|
|
perlPackages.TieCacheLRUExpires
|
|
|
|
perlPackages.TieRegexpHash
|
|
|
|
perlPackages.TimeDate
|
|
|
|
perlPackages.URI
|
2017-03-14 21:54:58 +00:00
|
|
|
perlPackages.URIFind
|
|
|
|
perlPackages.UUIDTiny
|
2017-03-14 20:20:55 +00:00
|
|
|
perlPackages.XMLParser
|
2017-03-14 21:34:12 +00:00
|
|
|
perlPackages.XMLSimple
|
|
|
|
perlPackages.YAMLLibYAML
|
2017-03-02 19:38:06 +00:00
|
|
|
];
|
|
|
|
|
2017-03-14 21:34:12 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
2017-03-15 21:34:10 +00:00
|
|
|
mkdir CPAN_used
|
2017-03-15 21:39:03 +00:00
|
|
|
mv CPAN/DBIx CPAN/SQL CPAN_used
|
2017-03-14 21:34:12 +00:00
|
|
|
rm -rf CPAN
|
|
|
|
rm -rf Bin
|
|
|
|
touch Makefile.PL
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigurePhase = "";
|
|
|
|
|
|
|
|
buildPhase = "
|
|
|
|
mv lib tmp
|
2017-03-15 21:34:10 +00:00
|
|
|
mkdir -p lib/perl5/site_perl
|
|
|
|
mv CPAN_used/* lib/perl5/site_perl
|
|
|
|
cp -rf tmp/* lib/perl5/site_perl
|
2017-03-14 21:55:04 +00:00
|
|
|
mv Slim lib/perl5/site_perl
|
2017-03-14 21:34:12 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
doCheck = false;
|
2017-03-02 19:38:06 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -r . $out
|
|
|
|
'';
|
2017-03-14 21:34:12 +00:00
|
|
|
|
|
|
|
outputs = [ "out" ];
|
2017-03-02 19:38:06 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/Logitech/slimserver;
|
|
|
|
description = "Server for Logitech Squeezebox players. This server is also called Logitech Media Server";
|
|
|
|
# TODO: not all source code is under gpl2!
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.phile314 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|