From f8637ce0f82482c6d2922646c8f410356b3c2929 Mon Sep 17 00:00:00 2001 From: Harinn Date: Fri, 8 May 2026 21:26:29 +0700 Subject: [PATCH] libuiohook: fix build with gcc 15 --- pkgs/by-name/li/libuiohook/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/li/libuiohook/package.nix b/pkgs/by-name/li/libuiohook/package.nix index 63008f738ad5..7cee3840645d 100644 --- a/pkgs/by-name/li/libuiohook/package.nix +++ b/pkgs/by-name/li/libuiohook/package.nix @@ -63,6 +63,11 @@ stdenv.mkDerivation (finalAttrs: { "-DENABLE_TEST:BOOL=ON" ]; + # Mismatched arg counts in tests break under gcc 15's C23 default. + env = lib.optionalAttrs stdenv.cc.isGNU { + NIX_CFLAGS_COMPILE = "-std=gnu17"; + }; + postInstall = '' mkdir -p $test/share cp ./uiohook_tests $test/share