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