diff --git a/pkgs/development/interpreters/python/2.7/default.nix b/pkgs/development/interpreters/python/2.7/default.nix index 4ba380436bb..1c8ae0cf171 100644 --- a/pkgs/development/interpreters/python/2.7/default.nix +++ b/pkgs/development/interpreters/python/2.7/default.nix @@ -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