figlet: link to unistd on all platforms; restore warnings

This commit is contained in:
Sam 2023-11-23 13:04:11 -08:00
parent 6e31010bb3
commit 08bdd67bed
No known key found for this signature in database
GPG Key ID: 07C4B9795517E3B4

View File

@ -21,12 +21,13 @@ stdenv.mkDerivation rec {
name = "musl-fix-cplusplus-decls.patch";
sha256 = "1720zgrfk9makznqkbjrnlxm7nnhk6zx7g458fv53337n3g3zn7j";
})
(fetchpatch {
url = "https://github.com/cmatsuoka/figlet/commit/9a50c1795bc32e5a698b855131ee87c8d7762c9e.patch";
name = "unistd-on-darwin.patch";
sha256 = "hyfY87N+yuAwjsBIjpgvcdJ1IbzlR4A2yUJQSzShCRI=";
})
];
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/";