diff options
author | Florian Friesdorf <flo@chaoflow.net> | 2013-01-09 08:26:15 +0100 |
---|---|---|
committer | Florian Friesdorf <flo@chaoflow.net> | 2013-01-09 08:45:03 +0100 |
commit | a37cabdbb7ad9adaf9f6da226e6ed2ec74813961 (patch) | |
tree | b80a915ab1f63338d51596bbdab9eea7429c292d /pkgs/development/interpreters | |
parent | 56517508d8e74e8d37f2c655d25c86333e9330ab (diff) | |
download | nixlib-a37cabdbb7ad9adaf9f6da226e6ed2ec74813961.tar nixlib-a37cabdbb7ad9adaf9f6da226e6ed2ec74813961.tar.gz nixlib-a37cabdbb7ad9adaf9f6da226e6ed2ec74813961.tar.bz2 nixlib-a37cabdbb7ad9adaf9f6da226e6ed2ec74813961.tar.lz nixlib-a37cabdbb7ad9adaf9f6da226e6ed2ec74813961.tar.xz nixlib-a37cabdbb7ad9adaf9f6da226e6ed2ec74813961.tar.zst nixlib-a37cabdbb7ad9adaf9f6da226e6ed2ec74813961.zip |
fix python-2.6 build: purity for systems with stdenv.gcc.libc
On other systems python26 will continue to look for /usr/include/netinet/in.h among others. I don't know whether/what to do about that.
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/2.6/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/2.6/default.nix b/pkgs/development/interpreters/python/2.6/default.nix index e8d79cec4f6a..3fe753a5a6fe 100644 --- a/pkgs/development/interpreters/python/2.6/default.nix +++ b/pkgs/development/interpreters/python/2.6/default.nix @@ -53,6 +53,10 @@ let for i in /usr /sw /opt /pkg; do substituteInPlace ./setup.py --replace $i /no-such-path done + '' + optionalString (stdenv ? gcc && stdenv.gcc.libc != null) '' + for i in Lib/plat-*/regen; do + substituteInPlace $i --replace /usr/include/ ${stdenv.gcc.libc}/include/ + done ''; NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-msse2"; |