cogl: fix build with clang 16

This commit is contained in:
Weijia Wang 2023-11-07 01:30:21 +01:00
parent 32da89a1a1
commit cba493538e

View file

@ -85,11 +85,15 @@ stdenv.mkDerivation rec {
buildInputs = lib.optionals pangoSupport [ pango cairo harfbuzz ]
++ lib.optionals stdenv.isDarwin [ OpenGL ];
env = {
COGL_PANGO_DEP_CFLAGS = toString (lib.optionals (stdenv.isDarwin && pangoSupport) [
"-I${pango.dev}/include/pango-1.0"
"-I${cairo.dev}/include/cairo"
"-I${harfbuzz.dev}/include/harfbuzz"
]);
} // lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
#doCheck = true; # all tests fail (no idea why)