guile-reader: fix build with clang 16

This commit is contained in:
Weijia Wang 2023-11-08 10:20:53 +01:00 committed by Anderson Torres
parent 263a89fa08
commit 07b331e833

View file

@ -27,7 +27,11 @@ stdenv.mkDerivation rec {
libffi
];
env.GUILE_SITE = "${guile-lib}/${guile.siteDir}";
env = {
GUILE_SITE = "${guile-lib}/${guile.siteDir}";
} // lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
configureFlags = [ "--with-guilemoduledir=$(out)/${guile.siteDir}" ];