treewide: move NIX_CFLAGS_COMPILE to the env attrset

with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
This commit is contained in:
Artturin
2023-02-22 21:23:04 +02:00
parent 6f6cc4a22d
commit f9fdf2d402
743 changed files with 781 additions and 781 deletions
@@ -37,7 +37,7 @@ buildPythonPackage rec {
buildPhase = "buildPhase";
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-ObjC"
env.NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-ObjC"
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-lpython2.7";
installPhase = "installPhase";