openjdk 12: fix possibly-unbound JAVA_HOME

as done in 373236ccff for all other uses
This commit is contained in:
Matt McHenry 2020-03-21 22:45:14 -04:00 committed by Milan
parent 8ff99ba57e
commit 7b7cb7b876

View file

@ -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
'';