Merge pull request #9148 from Profpatsch/sbt-java-home
wrap sbt with $JAVA_HOME
This commit is contained in:
commit
e8e206aa42
@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/bin
|
||||
cat > $out/bin/sbt << EOF
|
||||
#! ${stdenv.shell}
|
||||
if [ ! -v JAVA_HOME ]; then
|
||||
export JAVA_HOME="${jre.home}"
|
||||
fi
|
||||
${jre}/bin/java \$SBT_OPTS -jar ${src} "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/sbt
|
||||
|
Loading…
Reference in New Issue
Block a user