nixpkgs/pkgs/tools/graphics/pngcheck/default.nix

30 lines
679 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl, zlib }:
2014-12-01 16:05:20 +00:00
stdenv.mkDerivation rec {
2021-02-05 14:48:13 +00:00
name = "pngcheck-3.0.2";
2014-12-01 16:05:20 +00:00
src = fetchurl {
url = "mirror://sourceforge/png-mng/${name}.tar.gz";
2021-02-05 14:48:13 +00:00
sha256 = "sha256-DX4mLyQRb93yhHqM61yS2fXybvtC6f/2PsK7dnYTHKc=";
2014-12-01 16:05:20 +00:00
};
hardeningDisable = [ "format" ];
2014-12-01 16:05:20 +00:00
makefile = "Makefile.unx";
makeFlags = [ "ZPATH=${zlib.static}/lib" ];
2014-12-01 16:05:20 +00:00
buildInputs = [ zlib ];
installPhase = ''
mkdir -p $out/bin/
cp pngcheck $out/bin/pngcheck
'';
meta = {
homepage = "http://pmt.sourceforge.net/pngcrush";
2014-12-01 16:05:20 +00:00
description = "Verifies the integrity of PNG, JNG and MNG files";
2021-01-15 09:19:50 +00:00
license = lib.licenses.free;
platforms = with lib.platforms; linux;
2014-12-01 16:05:20 +00:00
};
}