vg: move NIX_CFLAGS_COMPILE into env for consistency

The rest of nixpkgs (minus some stragglers) has had this moved into env.

This commit does actually cause a rebuild since structuredAttrs is already enabled.
This commit is contained in:
Stefan Frijters
2026-05-25 14:22:01 +02:00
parent 7e18ec5706
commit 349a55616f
+9 -8
View File
@@ -128,14 +128,15 @@ stdenv.mkDerivation (finalAttrs: {
]
);
# needed, else build fails
env.VG_GIT_VERSION = finalAttrs.src.tag;
# deps/elfutils
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=stringop-overflow"
"-Wno-error=unterminated-string-initialization"
];
env = {
# needed, else build fails
VG_GIT_VERSION = finalAttrs.src.tag;
# deps/elfutils
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=stringop-overflow"
"-Wno-error=unterminated-string-initialization"
];
};
makeFlags = [
# don't build statically