guile-ncurses: fix build on darwin

This commit is contained in:
Weijia Wang 2023-12-05 00:47:45 +01:00
parent 12bcee759d
commit 8e9dcabab7

View file

@ -29,6 +29,10 @@ stdenv.mkDerivation rec {
"--with-gnu-filesystem-hierarchy"
];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
postFixup = ''
for f in $out/${guile.siteDir}/ncurses/**.scm; do \
substituteInPlace $f \