diff --git a/pkgs/tools/system/acpica-tools/default.nix b/pkgs/tools/system/acpica-tools/default.nix index 92f30e4ddbc9..214fe763f283 100644 --- a/pkgs/tools/system/acpica-tools/default.nix +++ b/pkgs/tools/system/acpica-tools/default.nix @@ -29,11 +29,12 @@ stdenv.mkDerivation rec { "iasl" ]; - env.NIX_CFLAGS_COMPILE = toString [ + env.NIX_CFLAGS_COMPILE = toString ([ "-O3" + ] ++ lib.optionals (stdenv.cc.isGNU) [ # Needed with GCC 12 "-Wno-dangling-pointer" - ]; + ]); enableParallelBuilding = true;