netpbm: fix build with clang 16

This commit is contained in:
Weijia Wang 2023-11-03 16:39:26 +01:00
parent b1b0b6e3e7
commit bc30be8ce6

View File

@ -95,6 +95,10 @@ stdenv.mkDerivation {
runHook postConfigure
'';
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
};
installPhase = ''
runHook preInstall