2019-06-01 04:13:43 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2018-09-28 22:18:49 +01:00
|
|
|
|
2019-06-01 04:13:43 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libimagequant";
|
|
|
|
version = "2.12.3";
|
2018-09-28 22:18:49 +01:00
|
|
|
|
2019-06-01 04:13:43 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ImageOptim";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0qsfq1kv1m5jzn9v9iz0bac66k4clcis1c9877qabnwzwmwma5v0";
|
|
|
|
};
|
2018-09-28 22:18:49 +01:00
|
|
|
|
2019-06-01 04:13:43 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./configure
|
|
|
|
'';
|
2018-09-28 22:18:49 +01:00
|
|
|
|
2019-06-01 04:13:43 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ ma9e marsam ];
|
|
|
|
};
|
|
|
|
}
|