nixpkgs/pkgs/servers/ums/default.nix

34 lines
942 B
Nix
Raw Normal View History

2015-11-08 08:52:04 +00:00
{ stdenv, fetchurl, makeWrapper
, libzen, libmediainfo , jre8
}:
stdenv.mkDerivation rec {
name = "ums-${version}";
2016-04-09 13:29:23 +01:00
version = "6.2.2";
2015-11-08 08:52:04 +00:00
src = fetchurl {
url = "mirror://sourceforge/project/unimediaserver/Official%20Releases/Linux/" + stdenv.lib.toUpper "${name}" + "-Java8.tgz";
2016-04-09 13:29:23 +01:00
sha256 = "1qa999la9hixy0pdj9phjvr6lwqycgdvm94nc1606vz0ivf95b15";
2016-01-09 13:09:35 +00:00
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" \
2016-06-07 19:18:38 +01:00
--prefix LD_LIBRARY_PATH ":" "${stdenv.lib.makeLibraryPath [ libzen libmediainfo] }" \
2015-11-08 08:52:04 +00:00
--set JAVA_HOME "${jre8}"
'';
meta = {
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 ];
};
}