pngcheck: enable building on darwin
This commit is contained in:
parent
59bea1f3b3
commit
75322a3817
@ -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,10 @@ 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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user