Oracle Java Mission Control: fix startup

The jmc binary needed some runtime dependencies. JMC can now be run.
This commit is contained in:
Simon Vandel Sillesen 2016-04-23 16:17:41 +02:00
parent db179647d6
commit 0857405208

View File

@ -11,6 +11,7 @@
{ swingSupport ? true
, stdenv
, requireFile
, makeWrapper
, unzip
, file
, xorg ? null
@ -83,6 +84,8 @@ let result = stdenv.mkDerivation rec {
nativeBuildInputs = [ file ]
++ stdenv.lib.optional installjce unzip;
buildInputs = [ makeWrapper ];
# See: https://github.com/NixOS/patchelf/issues/10
dontStrip = 1;
@ -159,6 +162,10 @@ let result = stdenv.mkDerivation rec {
cat <<EOF >> $out/nix-support/setup-hook
if [ -z "\$JAVA_HOME" ]; then export JAVA_HOME=$out; fi
EOF
# Oracle Java Mission Control needs to know where libgtk-x11 and related is
wrapProgram "$out/bin/jmc" \
--suffix-each LD_LIBRARY_PATH ':' "${rpath}" \
'';
inherit installjdk pluginSupport;