hal-hardware-analyzer: move NIX_CFLAGS_COMPILE into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-01-30 23:01:58 +01:00
parent d40fb630c5
commit f0ee49d6da

View File

@@ -87,7 +87,9 @@ stdenv.mkDerivation (finalAttrs: {
cmakeBuildType = "MinSizeRel";
# https://github.com/emsec/hal/issues/598
NIX_CFLAGS_COMPILE = lib.optional stdenv.hostPlatform.isAarch64 "-flax-vector-conversions";
env = lib.optionalAttrs stdenv.hostPlatform.isAarch64 {
NIX_CFLAGS_COMPILE = "-flax-vector-conversions";
};
# some plugins depend on other plugins and need to be able to load them
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''