1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4 pname = "libimagequant";
7 src = fetchFromGitHub {
11 sha256 = "sha256-ZoBCZsoUO66X4sDbMO89g4IX5+jqGMLGR7aC2UwD2tE=";
15 patchShebangs ./configure
18 configureFlags = lib.optionals (!stdenv.hostPlatform.isx86) [ "--disable-sse" ];
21 homepage = "https://pngquant.org/lib/";
22 description = "Image quantization library";
23 longDescription = "Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images.";
24 license = licenses.gpl3Plus;
25 platforms = platforms.unix;
26 maintainers = with maintainers; [ ma9e marsam ];