Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 29 lines 774 B view raw
1{ stdenv, fetchFromGitHub, unzip }: 2 3with stdenv; 4 5let 6 version = "2.12.2"; 7in 8 mkDerivation { 9 name = "libimagequant-${version}"; 10 src = fetchFromGitHub { 11 owner = "ImageOptim"; 12 repo = "libimagequant"; 13 rev = "${version}"; 14 sha256 = "1k61ifcjbp2lcrwqidflj99inkyhpbrw0hl1nzq1rjp5dnw2y5lw"; 15 }; 16 17 preConfigure = '' 18 patchShebangs ./configure 19 ''; 20 21 meta = { 22 homepage = https://pngquant.org/lib/; 23 description = "Image quantization library"; 24 longDescription = "Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images."; 25 license = lib.licenses.gpl3Plus; 26 platforms = lib.platforms.unix; 27 maintainers = with lib.maintainers; [ ma9e ]; 28 }; 29 }