mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
python311Packages.lxml: avoid rebuild on gcc platforms
It's a bit impractical that our env parameter does not have this property (with empty strings).
This commit is contained in:
parent
f380d904e5
commit
71c906fbfa
|
@ -22,7 +22,9 @@ buildPythonPackage rec {
|
|||
nativeBuildInputs = [ libxml2.dev libxslt.dev cython ] ++ lib.optionals stdenv.isDarwin [ xcodebuild ];
|
||||
buildInputs = [ libxml2 libxslt zlib ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
|
||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
|
||||
};
|
||||
|
||||
# tests are meant to be ran "in-place" in the same directory as src
|
||||
doCheck = false;
|
||||
|
|
Loading…
Reference in a new issue