summary refs log tree commit diff
path: root/pkgs/tools/graphics/pngcheck/default.nix
blob: 6814a06e3b95282a1fdcb8e7bee02af07a236a15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, zlib }:

stdenv.mkDerivation rec {
  name = "pngcheck-2.3.0";

  src = fetchurl {
    url = "mirror://sourceforge/png-mng/${name}.tar.gz";
    sha256 = "0pzkj1bb4kdybk6vbfq9s0wzdm5szmrgixkas3xmbpv4mhws1w3p";
  };

  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 = stdenv.lib.licenses.free;
    platforms = with stdenv.lib.platforms; linux;
    maintainers = with stdenv.lib.maintainers; [ the-kenny ];
  };
}