python34: as a workaround, explicitly set MACOSX_DEPLOYMENT_TARGET

Otherwise, it crashes with a segfault while running the tests.
This commit is contained in:
John Wiegley 2015-01-06 08:42:17 -06:00 committed by Shea Levy
parent fd26805059
commit ce59dec5bb
1 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,10 @@ stdenv.mkDerivation {
for i in /usr /sw /opt /pkg; do # improve purity
substituteInPlace ./setup.py --replace $i /no-such-path
done
${optionalString stdenv.isDarwin ''export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"''}
${optionalString stdenv.isDarwin ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"
export MACOSX_DEPLOYMENT_TARGET=10.6
''}
configureFlagsArray=( --enable-shared --with-threads
CPPFLAGS="${concatStringsSep " " (map (p: "-I${p}/include") buildInputs)}"