1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/graphics/pngnq/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

26 lines
621 B
Nix

{ stdenv, fetchurl, pkgconfig, libpng, zlib }:
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
'';
meta = with stdenv.lib; {
homepage = http://pngnq.sourceforge.net/;
description = "A PNG quantizer";
license = licenses.bsd3;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
}