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:26:15 +0100 |
commit | 723d5a5581a1ec4dc32eec3b197abb49def666e2 (patch) | |
tree | ed89007c8279fbab2253f4476bfdb36da7f1d9c0 /pkgs/development/interpreters | |
parent | 16e2a9133f0c6cff8b22a1b847d7c238eced0dbf (diff) | |
download | nixlib-723d5a5581a1ec4dc32eec3b197abb49def666e2.tar nixlib-723d5a5581a1ec4dc32eec3b197abb49def666e2.tar.gz nixlib-723d5a5581a1ec4dc32eec3b197abb49def666e2.tar.bz2 nixlib-723d5a5581a1ec4dc32eec3b197abb49def666e2.tar.lz nixlib-723d5a5581a1ec4dc32eec3b197abb49def666e2.tar.xz nixlib-723d5a5581a1ec4dc32eec3b197abb49def666e2.tar.zst nixlib-723d5a5581a1ec4dc32eec3b197abb49def666e2.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 6e7f01c0c923..30acdb3624e2 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"; |