at 22.05-pre 28 lines 788 B view raw
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "libimagequant"; 5 version = "2.15.1"; 6 7 src = fetchFromGitHub { 8 owner = "ImageOptim"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-ElMwLeUdrJeJJ9YoieCF/CUNcNMwj5WcjXmMW/nMyAw="; 12 }; 13 14 preConfigure = '' 15 patchShebangs ./configure 16 ''; 17 18 configureFlags = lib.optionals (!stdenv.hostPlatform.isx86) [ "--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}