3
0
Fork 0
forked from mirrors/nixpkgs

Fix setting $JAVA_HOME

This commit is contained in:
Eelco Dolstra 2014-07-16 18:22:52 +02:00
parent 63e2ec2bb8
commit 3c58261c67

View file

@ -24,8 +24,7 @@ let
echo -n "${setJavaClassPath}" > $out/nix-support/propagated-native-build-inputs
# 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
EOF
'';