From 34e0667b74c5055f81986c759344e3a7de6414c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Fri, 18 Nov 2022 10:29:41 +0100 Subject: [PATCH] dwarf-fortress.dfhack: use CXXFLAGS instead of NIX_CFLAGS_COMPILE See https://github.com/NixOS/nixpkgs/issues/79303. Avoids warnings about -fpermissive not being a valid C flag. --- pkgs/games/dwarf-fortress/dfhack/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/dwarf-fortress/dfhack/default.nix b/pkgs/games/dwarf-fortress/dfhack/default.nix index f54a0e1511df..914ccbb6ab33 100644 --- a/pkgs/games/dwarf-fortress/dfhack/default.nix +++ b/pkgs/games/dwarf-fortress/dfhack/default.nix @@ -125,7 +125,7 @@ in }); # gcc 11 fix - NIX_CFLAGS_COMPILE = lib.optionalString (lib.versionOlder version "0.47.05-r3") "-fpermissive"; + CXXFLAGS = lib.optionalString (lib.versionOlder version "0.47.05-r3") "-fpermissive"; # As of # https://github.com/DFHack/dfhack/commit/56e43a0dde023c5a4595a22b29d800153b31e3c4,