2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2018-09-28 22:18:49 +01:00
|
|
|
|
2019-06-01 04:13:43 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libimagequant";
|
2021-03-03 20:44:49 +00:00
|
|
|
version = "2.14.1";
|
2018-09-28 22:18:49 +01:00
|
|
|
|
2019-06-01 04:13:43 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ImageOptim";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-03-03 20:44:49 +00:00
|
|
|
sha256 = "sha256-yWtwBTAs6dlrZz3Bd/4DUb488IJsahPKwjluukTlv/o=";
|
2019-06-01 04:13:43 +01:00
|
|
|
};
|
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
|
|
|
|
2021-06-06 20:39:43 +01:00
|
|
|
configureFlags = lib.optionals (!stdenv.isi686 && !stdenv.isx86_64) [ "--disable-sse" ];
|
2021-03-05 02:31:13 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-06-01 04:13:43 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|