python-2.7: Attempt to fix the nixpkgs evaluation error

svn path=/nixpkgs/trunk/; revision=29327
This commit is contained in:
Shea Levy 2011-09-17 18:52:28 +00:00
parent f7567f8717
commit 2cc9e52aec

View file

@ -30,7 +30,7 @@ let
./nix-store-mtime.patch
];
postPatch = ''
postPatch = stdenv.lib.optionalString (stdenv.gcc.libc != null) ''
substituteInPlace ./Lib/plat-generic/regen \
--replace /usr/include/netinet/in.h \
${stdenv.gcc.libc}/include/netinet/in.h