Merge pull request #146087 from starcraft66/pngcheck-darwin

pngcheck: build on darwin and take ownership

Changed files
+8 -3
pkgs
tools
graphics
pngcheck
+8 -3
pkgs/tools/graphics/pngcheck/default.nix
···
hardeningDisable = [ "format" ];
+
postPatch = lib.optionalString stdenv.isDarwin ''
+
substituteInPlace Makefile.unx --replace "gcc" "clang"
+
'';
+
makefile = "Makefile.unx";
makeFlags = [ "ZPATH=${zlib.static}/lib" ];
···
cp pngcheck $out/bin/pngcheck
'';
-
meta = {
+
meta = with lib; {
homepage = "http://pmt.sourceforge.net/pngcrush";
description = "Verifies the integrity of PNG, JNG and MNG files";
-
license = lib.licenses.free;
-
platforms = with lib.platforms; linux;
+
license = licenses.free;
+
platforms = with platforms; [ unix ];
+
maintainers = with maintainers; [ starcraft66 ];
};
}