a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
26 lines
649 B
Nix
26 lines
649 B
Nix
{ lib, stdenv, fetchurl, pkg-config, libpng, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pngnq";
|
|
version = "1.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pngnq/pngnq-${version}.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 = "https://pngnq.sourceforge.net/";
|
|
description = "A PNG quantizer";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ pSub ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|