mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
7893853026
Removing the packaged JRE so that `jre8` gets used. Patchelf fails on `tsMuxeR` and `tsMuxeR-new`, but this doesn't make it any worse comparing to 6.2.2 where is also failed, so I am assuming fixing it is out of scope of this pr. The only difference is that the new UMS version correctly identifies that `tsMuxeR` doesn't work, comparing to the previous one.
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, fetchurl, makeWrapper
|
|
, libzen, libmediainfo , jre8
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ums";
|
|
version = "9.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/unimediaserver/Official%20Releases/Linux/" + stdenv.lib.toUpper "${pname}-${version}" + ".tgz";
|
|
sha256 = "07wprjpwqids96v5q5fhwcxqlg8jp1vy585vl2nqbfi1vf5v294s";
|
|
name = "${pname}-${version}.tgz";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
cp -a . $out/
|
|
mkdir $out/bin
|
|
mv $out/documentation /$out/doc
|
|
|
|
# ums >= 9.0.0 ships its own JRE in the package. if we remove it, the `UMS.sh`
|
|
# script will correctly fall back to the JRE specified by JAVA_HOME
|
|
rm -rf $out/linux/jre-x64 $out/linux/jre-x86
|
|
|
|
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 ];
|
|
};
|
|
}
|