2019-06-01 03:13:43 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2018-09-28 21:18:49 +00:00
|
|
|
|
2019-06-01 03:13:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libimagequant";
|
2019-08-04 21:35:27 +00:00
|
|
|
version = "2.12.5";
|
2018-09-28 21:18:49 +00:00
|
|
|
|
2019-06-01 03:13:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ImageOptim";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-08-04 21:35:27 +00:00
|
|
|
sha256 = "0cp68w04ja5pv77ssfafsn958w9hh9zb8crrlb5j3gsrcmdc032k";
|
2019-06-01 03:13:43 +00:00
|
|
|
};
|
2018-09-28 21:18:49 +00:00
|
|
|
|
2019-06-01 03:13:43 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./configure
|
|
|
|
'';
|
2018-09-28 21:18:49 +00:00
|
|
|
|
2019-06-01 03:13:43 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|