From 71c906fbfa77b760c32b65a36a84c6c242cef002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 23 Dec 2023 22:09:12 +0100 Subject: [PATCH] python311Packages.lxml: avoid rebuild on gcc platforms It's a bit impractical that our env parameter does not have this property (with empty strings). --- pkgs/development/python-modules/lxml/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/lxml/default.nix b/pkgs/development/python-modules/lxml/default.nix index 093ec343a6db..fae582f17072 100644 --- a/pkgs/development/python-modules/lxml/default.nix +++ b/pkgs/development/python-modules/lxml/default.nix @@ -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;