@@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
1111
1212 hardeningDisable = [ "format" ];
1313
14+ postPatch = lib.optionalString stdenv.isDarwin ''
15+ substituteInPlace Makefile.unx --replace "gcc" "clang"
16+ '';
17+
1418 makefile = "Makefile.unx";
1519 makeFlags = [ "ZPATH=${zlib.static}/lib" ];
1620
@@ -21,10 +25,10 @@ stdenv.mkDerivation rec {
2125 cp pngcheck $out/bin/pngcheck
2226 '';
2327
24− meta = {
28+ meta = with lib; {
2529 homepage = "http://pmt.sourceforge.net/pngcrush";
2630 description = "Verifies the integrity of PNG, JNG and MNG files";
27− license = lib.licenses.free;
28− platforms = with lib.platforms; linux;
31+ license = licenses.free;
32+ platforms = with platforms; [ unix ];
2933 };
3034}