Merge pull request #146087 from starcraft66/pngcheck-darwin

pngcheck: build on darwin and take ownership
This commit is contained in:
Domen Kožar 2021-11-15 06:37:50 -06:00 committed by GitHub
commit 147de63ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile.unx --replace "gcc" "clang"
'';
makefile = "Makefile.unx";
makeFlags = [ "ZPATH=${zlib.static}/lib" ];
@ -21,10 +25,11 @@ stdenv.mkDerivation rec {
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 ];
};
}