git.iko.soy/typeable/nixpkgs
on master help sign in
pngcheck: enable building on darwin
commit75322a3817a66dec05c677768b4b47b9359e1d71 authorTristan Gosselin-Hane <starcraft66@gmail.com> dateMon 15 Nov 2021, 01:58 (5 years ago) parent59bea1f
1 file changed+7−3
pkgs/tools/graphics/pngcheck/default.nix+7−3
pkgs/tools/graphics/pngcheck/default.nix+7−3
@@ -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}