depot/third_party/nixpkgs/pkgs/development/libraries/libimagequant/default.nix
Default email bb5b50588c Project import generated by Copybara.
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
2021-02-19 20:06:45 +01:00

26 lines
704 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "libimagequant";
version = "2.14.0";
src = fetchFromGitHub {
owner = "ImageOptim";
repo = pname;
rev = version;
sha256 = "sha256-XP/GeZC8TCgBPqtScY9eneZHFter1kdWf/yko0p2VYQ=";
};
preConfigure = ''
patchShebangs ./configure
'';
meta = with 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 ];
};
}