depot/third_party/nixpkgs/pkgs/tools/graphics/pngcheck/default.nix
Default email fcc03dbfc5 Project import generated by Copybara.
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
2021-02-13 15:23:35 +01:00

29 lines
679 B
Nix

{ lib, stdenv, fetchurl, zlib }:
stdenv.mkDerivation rec {
name = "pngcheck-3.0.2";
src = fetchurl {
url = "mirror://sourceforge/png-mng/${name}.tar.gz";
sha256 = "sha256-DX4mLyQRb93yhHqM61yS2fXybvtC6f/2PsK7dnYTHKc=";
};
hardeningDisable = [ "format" ];
makefile = "Makefile.unx";
makeFlags = [ "ZPATH=${zlib.static}/lib" ];
buildInputs = [ zlib ];
installPhase = ''
mkdir -p $out/bin/
cp pngcheck $out/bin/pngcheck
'';
meta = {
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;
};
}