2018-09-28 23:18:49 +02:00
|
|
|
{ stdenv, fetchFromGitHub, unzip }:
|
|
|
|
|
|
|
|
with stdenv;
|
|
|
|
|
|
|
|
let
|
2018-11-09 22:34:07 +01:00
|
|
|
version = "2.12.2";
|
2018-09-28 23:18:49 +02:00
|
|
|
in
|
|
|
|
mkDerivation {
|
|
|
|
name = "libimagequant-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ImageOptim";
|
|
|
|
repo = "libimagequant";
|
|
|
|
rev = "${version}";
|
2018-11-09 22:34:07 +01:00
|
|
|
sha256 = "1k61ifcjbp2lcrwqidflj99inkyhpbrw0hl1nzq1rjp5dnw2y5lw";
|
2018-09-28 23:18:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://pngquant.org/lib/;
|
|
|
|
description = "Image quantization library";
|
|
|
|
longDescription = "Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images.";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2018-10-02 19:54:50 +02:00
|
|
|
maintainers = with lib.maintainers; [ ma9e ];
|
2018-09-28 23:18:49 +02:00
|
|
|
};
|
|
|
|
}
|