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