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