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

25 lines
594 B
Nix
Raw Normal View History

2015-02-13 10:01:55 +00:00
{ stdenv, fetchurl, pkgconfig, libpng, zlib }:
stdenv.mkDerivation rec {
2015-02-13 10:01:55 +00:00
name = "pngnq-1.1";
src = fetchurl {
url = "mirror://sourceforge/pngnq/${name}.tar.gz";
2015-02-13 10:01:55 +00:00
sha256 = "1qmnnl846agg55i7h4vmrn11lgb8kg6gvs8byqz34bdkjh5gwiy1";
};
2015-02-13 10:01:55 +00:00
buildInputs = [ pkgconfig libpng zlib ];
2015-02-13 10:01:55 +00:00
patchPhase = ''
sed -i '/png.h/a \#include <zlib.h>' src/rwpng.c
'';
meta = with stdenv.lib; {
homepage = http://pngnq.sourceforge.net/;
description = "A PNG quantizer";
2015-02-13 10:01:55 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
}