From 6d9b6d565b48d7d290af337eb7a0c7466a1d324a Mon Sep 17 00:00:00 2001 From: Manuel Frischknecht Date: Sat, 16 May 2026 13:25:26 +0200 Subject: [PATCH] uhexen2: fix build uhexen2 isn't C23 conform because it defines its own `true` and `false` values (which have been declared keywords in the latest C standard). This causes build failures with the newest versions of GCC unless one tells the compiler to use an older standard: ``` In file included from ./quakeinc.h:29, from ./quakedef.h:224, from ../h2shared/gl_rlight.c:25: ../../common/q_stdinc.h:128:9: error: cannot use keyword 'false' as enumeration constant 128 | false = 0, | ^~~~~ ../../common/q_stdinc.h:128:9: note: 'false' is a keyword with '-std=c23' onwards ``` --- pkgs/by-name/uh/uhexen2/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/uh/uhexen2/package.nix b/pkgs/by-name/uh/uhexen2/package.nix index 94532049a226..d12906454201 100644 --- a/pkgs/by-name/uh/uhexen2/package.nix +++ b/pkgs/by-name/uh/uhexen2/package.nix @@ -45,6 +45,8 @@ stdenv.mkDerivation { ) ''; + NIX_CFLAGS_COMPILE = "-std=gnu17"; + buildPhase = '' runHook preBuild for makefile in "''${makeFiles[@]}"; do