diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libimagequant')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libimagequant/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libimagequant/default.nix b/nixpkgs/pkgs/development/libraries/libimagequant/default.nix new file mode 100644 index 000000000000..348f610bf183 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libimagequant/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "libimagequant"; + version = "2.15.1"; + + src = fetchFromGitHub { + owner = "ImageOptim"; + repo = pname; + rev = version; + sha256 = "sha256-ElMwLeUdrJeJJ9YoieCF/CUNcNMwj5WcjXmMW/nMyAw="; + }; + + preConfigure = '' + patchShebangs ./configure + ''; + + configureFlags = lib.optionals (!stdenv.hostPlatform.isx86) [ "--disable-sse" ]; + + 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 ]; + }; +} |