summaryrefslogtreecommitdiffstats
path: root/pkgs/games/dwarf-fortress
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2022-04-28 13:38:38 -0700
committerJonathan Ringer <jonringer@users.noreply.github.com>2022-04-30 11:00:41 -0700
commit075f25eb984dae72c84c346abfa48323bd0a21f0 (patch)
tree62b6ffe907aa4e304cac38a178d8d13fe2fe2432 /pkgs/games/dwarf-fortress
parentd510b23805c37a5b11b86dc3ba8723fcaa6f4539 (diff)
dwarf-fortress/dfhack: fix build with gcc 11
Diffstat (limited to 'pkgs/games/dwarf-fortress')
-rw-r--r--pkgs/games/dwarf-fortress/dfhack/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/games/dwarf-fortress/dfhack/default.nix b/pkgs/games/dwarf-fortress/dfhack/default.nix
index 80fa1de18e4e..2064aa0199b4 100644
--- a/pkgs/games/dwarf-fortress/dfhack/default.nix
+++ b/pkgs/games/dwarf-fortress/dfhack/default.nix
@@ -131,6 +131,9 @@ let
patches = [ ./fix-stonesense.patch ];
+ # gcc 11 fix
+ NIX_CFLAGS_COMPILE = "-fpermissive";
+
# As of
# https://github.com/DFHack/dfhack/commit/56e43a0dde023c5a4595a22b29d800153b31e3c4,
# dfhack gets its goodies from the directory above the Dwarf_Fortress