mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
34 lines
956 B
Nix
34 lines
956 B
Nix
{ stdenv, fetchurl, makeWrapper
|
|
, libzen, libmediainfo , jre8
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ums";
|
|
version = "6.2.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/unimediaserver/Official%20Releases/Linux/" + stdenv.lib.toUpper "${pname}-${version}" + "-Java8.tgz";
|
|
sha256 = "1qa999la9hixy0pdj9phjvr6lwqycgdvm94nc1606vz0ivf95b15";
|
|
name = "${pname}-${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 ":" "${stdenv.lib.makeLibraryPath [ libzen libmediainfo] }" \
|
|
--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 ];
|
|
};
|
|
}
|