2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkgconfig, libpng, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pngnq-1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/pngnq/${name}.tar.gz";
|
|
|
|
sha256 = "1qmnnl846agg55i7h4vmrn11lgb8kg6gvs8byqz34bdkjh5gwiy1";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libpng zlib ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i '/png.h/a \#include <zlib.h>' src/rwpng.c
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://pngnq.sourceforge.net/";
|
|
|
|
description = "A PNG quantizer";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|