Unverified Commit 08bdd67b authored by Sam's avatar Sam
Browse files

figlet: link to unistd on all platforms; restore warnings

parent 6e31010b
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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/";