2014-12-01 17:05:20 +01:00
|
|
|
{ stdenv, fetchurl, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pngcheck-2.3.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/png-mng/${name}.tar.gz";
|
|
|
|
sha256 = "0pzkj1bb4kdybk6vbfq9s0wzdm5szmrgixkas3xmbpv4mhws1w3p";
|
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2014-12-01 17:05:20 +01:00
|
|
|
|
|
|
|
makefile = "Makefile.unx";
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "ZPATH=${zlib.static}/lib" ];
|
2014-12-01 17:05:20 +01:00
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
cp pngcheck $out/bin/pngcheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://pmt.sourceforge.net/pngcrush";
|
2014-12-01 17:05:20 +01:00
|
|
|
description = "Verifies the integrity of PNG, JNG and MNG files";
|
|
|
|
license = stdenv.lib.licenses.free;
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|