openjdk 12: fix possibly-unbound JAVA_HOME
as done in 373236ccfffe7053b1503a8992ddff7ebae3ed6f for all other uses
This commit is contained in:
parent
8ff99ba57e
commit
7b7cb7b876
@ -114,7 +114,7 @@ let
|
|||||||
# Set JAVA_HOME automatically.
|
# Set JAVA_HOME automatically.
|
||||||
mkdir -p $out/nix-support
|
mkdir -p $out/nix-support
|
||||||
cat <<EOF > $out/nix-support/setup-hook
|
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
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user