openjdk 12: fix possibly-unbound JAVA_HOME
as done in 373236ccff
for all other uses
This commit is contained in:
parent
8ff99ba57e
commit
7b7cb7b876
@ -114,7 +114,7 @@ let
|
||||
# Set JAVA_HOME automatically.
|
||||
mkdir -p $out/nix-support
|
||||
cat <<EOF > $out/nix-support/setup-hook
|
||||
if [ -z "\$JAVA_HOME" ]; then export JAVA_HOME=$out/lib/openjdk; fi
|
||||
if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out/lib/openjdk; fi
|
||||
EOF
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user