2015-11-08 08:52:04 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper
|
|
|
|
, libzen, libmediainfo , jre8
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ums-${version}";
|
2016-01-09 13:09:35 +00:00
|
|
|
version = "5.4.0";
|
2015-11-08 08:52:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-02-28 12:07:42 +00:00
|
|
|
url = "mirror://sourceforge/project/unimediaserver/Official%20Releases/Linux/" + stdenv.lib.toUpper "${name}" + "-Java8.tgz";
|
2016-01-09 13:09:35 +00:00
|
|
|
sha256 = "0ryp26h7pyqing8pyg0xjrp1wm77wwgya4a7d00wczh885pk16kq";
|
|
|
|
name = "${name}.tgz";
|
2015-11-08 08:52:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -a . $out/
|
|
|
|
mkdir $out/bin
|
|
|
|
mv $out/documentation /$out/doc
|
|
|
|
|
|
|
|
makeWrapper "$out/UMS.sh" "$out/bin/ums" \
|
|
|
|
--prefix LD_LIBRARY_PATH ":" "${libzen}/lib:${libmediainfo}/lib" \
|
|
|
|
--set JAVA_HOME "${jre8}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2016-02-27 17:24:00 +00:00
|
|
|
description = "Universal Media Server: a DLNA-compliant UPnP Media Server";
|
2015-11-08 08:52:04 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thall ];
|
|
|
|
};
|
|
|
|
}
|