3
0
Fork 0
forked from mirrors/nixpkgs

openjdk: Fix setting $JAVA_HOME

This commit is contained in:
Eelco Dolstra 2014-01-13 18:34:52 +01:00
parent b340508461
commit cda63e94c3

View file

@ -121,7 +121,7 @@ stdenv.mkDerivation rec {
# Set JAVA_HOME automatically.
mkdir -p $out/nix-support
cat <<EOF > $out/nix-support/setup-hook
if [ -n "\$JAVA_HOME" ]; then export JAVA_HOME=$out; fi
if [ -z "\$JAVA_HOME" ]; then export JAVA_HOME=$out/lib/openjdk; fi
EOF
'';