mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
27 lines
707 B
Nix
27 lines
707 B
Nix
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libimagequant";
|
|
version = "2.12.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ImageOptim";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "00w7fny3xf14cfyhbdnmqyh9ddqdh1irvgzxd35a2z65kp7vnvj0";
|
|
};
|
|
|
|
preConfigure = ''
|
|
patchShebangs ./configure
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|