figlet: link to unistd on all platforms; restore warnings

Sam 08bdd67b 6e31010b

+5 -4
+5 -4
pkgs/tools/misc/figlet/default.nix
··· 21 21 name = "musl-fix-cplusplus-decls.patch"; 22 22 sha256 = "1720zgrfk9makznqkbjrnlxm7nnhk6zx7g458fv53337n3g3zn7j"; 23 23 }) 24 + (fetchpatch { 25 + url = "https://github.com/cmatsuoka/figlet/commit/9a50c1795bc32e5a698b855131ee87c8d7762c9e.patch"; 26 + name = "unistd-on-darwin.patch"; 27 + sha256 = "hyfY87N+yuAwjsBIjpgvcdJ1IbzlR4A2yUJQSzShCRI="; 28 + }) 24 29 ]; 25 - 26 - env = lib.optionalAttrs stdenv.cc.isClang { 27 - NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 28 - }; 29 30 30 31 makeFlags = [ "prefix=$(out)" "CC:=$(CC)" "LD:=$(CC)" ]; 31 32