From 1b95cb72a2117089142a800e25cfd58a2b9650af Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 7 Mar 2026 16:39:16 -0800 Subject: [PATCH] _2bwm: fix build with GCC 15 Pass -std=gnu17 to work around incompatible-pointer-types errors. The upstream code declares callback functions with empty parameter lists, which GCC 15 (defaulting to gnu23) now rejects. Ref: #475479 --- pkgs/applications/window-managers/2bwm/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/window-managers/2bwm/default.nix b/pkgs/applications/window-managers/2bwm/default.nix index 3b2053fdca26..cedbe5710a8c 100644 --- a/pkgs/applications/window-managers/2bwm/default.nix +++ b/pkgs/applications/window-managers/2bwm/default.nix @@ -25,6 +25,8 @@ stdenv.mkDerivation rec { # Allow users set their own list of patches inherit patches; + env.NIX_CFLAGS_COMPILE = "-std=gnu17"; + buildInputs = [ libxcb libxcb-keysyms