* -msse2 flag for python on i686-darwin

svn path=/nixpkgs/trunk/; revision=15914
This commit is contained in:
Rob Vermaas 2009-06-10 09:18:51 +00:00
parent e85cc883e7
commit 342d9834bf

View File

@ -34,7 +34,7 @@ let
in in
stdenv.mkDerivation { stdenv.mkDerivation ( {
name = "python-2.5.4"; name = "python-2.5.4";
src = fetchurl { src = fetchurl {
@ -50,7 +50,6 @@ stdenv.mkDerivation {
inherit buildInputs; inherit buildInputs;
C_INCLUDE_PATH = concatStringsSep ":" (map (p: "${p}/include") buildInputs); C_INCLUDE_PATH = concatStringsSep ":" (map (p: "${p}/include") buildInputs);
LIBRARY_PATH = concatStringsSep ":" (map (p: "${p}/lib") buildInputs); LIBRARY_PATH = concatStringsSep ":" (map (p: "${p}/lib") buildInputs);
configureFlags = "--enable-shared --with-wctype-functions"; configureFlags = "--enable-shared --with-wctype-functions";
preConfigure = '' preConfigure = ''
@ -77,4 +76,4 @@ stdenv.mkDerivation {
tkSupport = (tk != null) && (tcl != null); tkSupport = (tk != null) && (tcl != null);
libPrefix = "python2.5"; libPrefix = "python2.5";
} ; } ;
} } // (if stdenv.system == "i686-darwin" then { NIX_CFLAGS_COMPILE = "-msse2" ; } else {} ) )