git.iko.soy/typeable/nixpkgs
on master help sign in
python34: as a workaround, explicitly set MACOSX_DEPLOYMENT_TARGET
ce59decJohn Wiegley
pkgs/development/interpreters/python/3.4/default.nix+4−1
@@ -42,7 +42,10 @@ stdenv.mkDerivation {
42 for i in /usr /sw /opt /pkg; do # improve purity
42 for i in /usr /sw /opt /pkg; do # improve purity
43 substituteInPlace ./setup.py --replace $i /no-such-path
43 substituteInPlace ./setup.py --replace $i /no-such-path
44 done
44 done
45+ ${optionalString stdenv.isDarwin ''
45− ${optionalString stdenv.isDarwin ''export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"''}
46+ export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"
47+ export MACOSX_DEPLOYMENT_TARGET=10.6
48+ ''}
46
49
47 configureFlagsArray=( --enable-shared --with-threads
50 configureFlagsArray=( --enable-shared --with-threads
48 CPPFLAGS="${concatStringsSep " " (map (p: "-I${p}/include") buildInputs)}"
51 CPPFLAGS="${concatStringsSep " " (map (p: "-I${p}/include") buildInputs)}"