Fix setting $JAVA_HOME

wip/yesman
Eelco Dolstra 10 years ago
parent 63e2ec2bb8
commit 3c58261c67
  1. 3
      pkgs/development/compilers/openjdk-darwin/default.nix

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

Loading…
Cancel
Save