Oracle Java Mission Control: fix startup
The jmc binary needed some runtime dependencies. JMC can now be run.
This commit is contained in:
parent
db179647d6
commit
0857405208
|
@ -11,6 +11,7 @@
|
||||||
{ swingSupport ? true
|
{ swingSupport ? true
|
||||||
, stdenv
|
, stdenv
|
||||||
, requireFile
|
, requireFile
|
||||||
|
, makeWrapper
|
||||||
, unzip
|
, unzip
|
||||||
, file
|
, file
|
||||||
, xorg ? null
|
, xorg ? null
|
||||||
|
@ -83,6 +84,8 @@ let result = stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ file ]
|
nativeBuildInputs = [ file ]
|
||||||
++ stdenv.lib.optional installjce unzip;
|
++ stdenv.lib.optional installjce unzip;
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
# See: https://github.com/NixOS/patchelf/issues/10
|
# See: https://github.com/NixOS/patchelf/issues/10
|
||||||
dontStrip = 1;
|
dontStrip = 1;
|
||||||
|
|
||||||
|
@ -159,6 +162,10 @@ let result = stdenv.mkDerivation rec {
|
||||||
cat <<EOF >> $out/nix-support/setup-hook
|
cat <<EOF >> $out/nix-support/setup-hook
|
||||||
if [ -z "\$JAVA_HOME" ]; then export JAVA_HOME=$out; fi
|
if [ -z "\$JAVA_HOME" ]; then export JAVA_HOME=$out; fi
|
||||||
EOF
|
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;
|
inherit installjdk pluginSupport;
|
||||||
|
|
Loading…
Reference in a new issue