pngnq: update from 1.0 to 1.1

This commit is contained in:
Pascal Wittmann 2015-02-13 11:01:55 +01:00
parent 7e07916f91
commit 92f3ec3ba5

View File

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