nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 26 lines 707 B view raw
1{ stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "libimagequant"; 5 version = "2.12.6"; 6 7 src = fetchFromGitHub { 8 owner = "ImageOptim"; 9 repo = pname; 10 rev = version; 11 sha256 = "00w7fny3xf14cfyhbdnmqyh9ddqdh1irvgzxd35a2z65kp7vnvj0"; 12 }; 13 14 preConfigure = '' 15 patchShebangs ./configure 16 ''; 17 18 meta = with stdenv.lib; { 19 homepage = "https://pngquant.org/lib/"; 20 description = "Image quantization library"; 21 longDescription = "Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images."; 22 license = licenses.gpl3Plus; 23 platforms = platforms.unix; 24 maintainers = with maintainers; [ ma9e marsam ]; 25 }; 26}