Fix setting $JAVA_HOME
This commit is contained in:
parent
63e2ec2bb8
commit
3c58261c67
@ -24,8 +24,7 @@ let
|
|||||||
echo -n "${setJavaClassPath}" > $out/nix-support/propagated-native-build-inputs
|
echo -n "${setJavaClassPath}" > $out/nix-support/propagated-native-build-inputs
|
||||||
|
|
||||||
# Set JAVA_HOME automatically.
|
# Set JAVA_HOME automatically.
|
||||||
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; fi
|
if [ -z "\$JAVA_HOME" ]; then export JAVA_HOME=$out; fi
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user