forked from mirrors/nixpkgs
openjdk: Fix setting $JAVA_HOME
This commit is contained in:
parent
b340508461
commit
cda63e94c3
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue