librep: fix build (#493393)

This commit is contained in:
Aleksana
2026-03-05 11:52:38 +00:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -49,6 +49,8 @@ stdenv.mkDerivation (finalAttrs: {
strictDeps = true;
enableParallelBuilding = true;
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
# ensure libsystem/ctype functions don't get duplicated when using clang
configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "CFLAGS=-std=gnu89" ];
+4
View File
@@ -77,6 +77,10 @@ stdenv.mkDerivation (finalAttrs: {
done
'';
# fixes:
# sawfish.h:52:13: error: 'bool' cannot be defined via 'typedef'
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
nativeInstallCheckInputs = [
versionCheckHook
];