From f0ee49d6da034b56dcac8606f9647302ee07ba03 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Fri, 30 Jan 2026 23:01:58 +0100 Subject: [PATCH] hal-hardware-analyzer: move NIX_CFLAGS_COMPILE into env for structuredAttrs --- pkgs/by-name/ha/hal-hardware-analyzer/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ha/hal-hardware-analyzer/package.nix b/pkgs/by-name/ha/hal-hardware-analyzer/package.nix index c61f8c3d8500..89bdf10118a6 100644 --- a/pkgs/by-name/ha/hal-hardware-analyzer/package.nix +++ b/pkgs/by-name/ha/hal-hardware-analyzer/package.nix @@ -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 ''