3
0
Fork 0
forked from mirrors/nixpkgs

Fix building with recent openjdk

This commit is contained in:
Sander van der Burg 2014-01-15 16:32:40 +01:00
parent 512a3a4e46
commit b9cbab922e
2 changed files with 1 additions and 3 deletions

View file

@ -24,8 +24,6 @@ stdenv.mkDerivation {
buildInputs = [ jdk ] ++ stdenv.lib.optional (stdenv.system == "x86_64-darwin") xcodewrapper;
JAVA_HOME = jdk;
buildPhase = ''
export HOME=$TMPDIR

View file

@ -62,7 +62,7 @@ stdenv.mkDerivation {
import os, sys
os.environ['PYTHONPATH'] = '$(echo ${python.modules.sqlite3}/lib/python*/site-packages)'
os.environ['JAVA_HOME'] = '${jdk}'
os.environ['JAVA_HOME'] = '${if stdenv.system == "x86_64-darwin" then jdk else "${jdk}/lib/openjdk"}'
os.execv('$(pwd)/.builder.py', sys.argv)
EOF