libuiohook: fix build with gcc 15 (#518080)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-13 18:17:47 +00:00
committed by GitHub
+5
View File
@@ -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