figlet: ignore implicit-function-declaration; fix build

figlet.c uses getopt from getopt.c with no function declaration.

authored by annalee and committed by Emery Hemingway 359d5776 631766b8

+4
+4
pkgs/tools/misc/figlet/default.nix
··· 23 }) 24 ]; 25 26 makeFlags = [ "prefix=$(out)" "CC:=$(CC)" "LD:=$(CC)" ]; 27 28 postInstall = "cp -ar ${contributed}/* $out/share/figlet/";
··· 23 }) 24 ]; 25 26 + env = lib.optionalAttrs stdenv.cc.isClang { 27 + NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 28 + }; 29 + 30 makeFlags = [ "prefix=$(out)" "CC:=$(CC)" "LD:=$(CC)" ]; 31 32 postInstall = "cp -ar ${contributed}/* $out/share/figlet/";