libuiohook: fix build with gcc 15 (#518080)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user