ums: init at 5.3.1, fixes #11485
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{ stdenv, fetchurl, makeWrapper
|
||||
, libzen, libmediainfo , jre8
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ums-${version}";
|
||||
version = "5.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://downloads.sourceforge.net/project/unimediaserver/Official%20Releases/Linux/" + stdenv.lib.toUpper "${name}" + "-Java8.tgz";
|
||||
sha256 = "197lrfqk4n6fffrabj0607a9a5wc1j662s46anc0mkyqbb4r3avh";
|
||||
name = "${name}-${version}.tgz";
|
||||
};
|
||||
|
||||
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 = {
|
||||
description = "Universal Media Server: a DLNA-compliant UPnP Media Server.";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = [ stdenv.lib.maintainers.thall ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user