neko: fix build with clang 16

This commit is contained in:
Weijia Wang 2023-11-01 02:06:55 +01:00
parent 4c838ddf14
commit faaaf4dccb

View file

@ -29,6 +29,9 @@ stdenv.mkDerivation rec {
++ lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.Carbon];
cmakeFlags = [ "-DRUN_LDCONFIG=OFF" ];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
installCheckPhase = ''
bin/neko bin/test.n