From eea3d65944ede1f4b6374430b708c6207ea5e00f Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Wed, 11 Feb 2026 11:01:33 +0100 Subject: [PATCH] acpica-tools: move env variable(s) into env for structuredAttrs --- pkgs/by-name/ac/acpica-tools/package.nix | 26 +++++++++++++----------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/ac/acpica-tools/package.nix b/pkgs/by-name/ac/acpica-tools/package.nix index 2b0d3601c46b..4f3420a991d8 100644 --- a/pkgs/by-name/ac/acpica-tools/package.nix +++ b/pkgs/by-name/ac/acpica-tools/package.nix @@ -34,21 +34,23 @@ stdenv.mkDerivation (finalAttrs: { "iasl" ]; - env.NIX_CFLAGS_COMPILE = toString [ - "-O3" - ]; + env = { + NIX_CFLAGS_COMPILE = toString [ + "-O3" + ]; + + # i686 builds fail with hardening enabled (due to -Wformat-overflow). Disable + # -Werror altogether to make this derivation less fragile to toolchain + # updates. + NOWERROR = "TRUE"; + + # We can handle stripping ourselves. + # Unless we are on Darwin. Upstream makefiles degrade coreutils install to cp if _APPLE is detected. + INSTALLFLAGS = lib.optionals (!stdenv.hostPlatform.isDarwin) "-m 555"; + }; enableParallelBuilding = true; - # i686 builds fail with hardening enabled (due to -Wformat-overflow). Disable - # -Werror altogether to make this derivation less fragile to toolchain - # updates. - NOWERROR = "TRUE"; - - # We can handle stripping ourselves. - # Unless we are on Darwin. Upstream makefiles degrade coreutils install to cp if _APPLE is detected. - INSTALLFLAGS = lib.optionals (!stdenv.hostPlatform.isDarwin) "-m 555"; - installFlags = [ "PREFIX=${placeholder "out"}" ]; passthru.updateScript = nix-update-script { };