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