depot/third_party/nixpkgs/pkgs/tools/graphics/pngnq/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

25 lines
623 B
Nix

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