figlet: ignore implicit-function-declaration; fix build

figlet.c uses getopt from getopt.c with no function declaration.
This commit is contained in:
annalee 2023-11-23 10:13:00 +00:00 committed by Emery Hemingway
parent 631766b842
commit 359d577687

View file

@ -23,6 +23,10 @@ stdenv.mkDerivation rec {
})
];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
makeFlags = [ "prefix=$(out)" "CC:=$(CC)" "LD:=$(CC)" ];
postInstall = "cp -ar ${contributed}/* $out/share/figlet/";