Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchzip, 5 libpng, 6 zlib, 7 zopfli, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "apngasm"; 12 version = "2.91"; 13 14 src = fetchzip { 15 url = "mirror://sourceforge/${pname}/${pname}-${version}-src.zip"; 16 stripRoot = false; 17 sha256 = "0qhljqql159xkn1l83vz0q8wvzr7rjz4jnhiy0zn36pgvacg0zn1"; 18 }; 19 20 buildInputs = [ 21 libpng 22 zlib 23 zopfli 24 ]; 25 26 postPatch = '' 27 rm -rf libpng zlib zopfli 28 ''; 29 30 NIX_CFLAGS_LINK = "-lzopfli"; 31 32 installPhase = '' 33 install -Dt $out/bin apngasm 34 ''; 35 36 enableParallelBuilding = true; 37 38 meta = with lib; { 39 description = "Create highly optimized Animated PNG files from PNG/TGA images"; 40 mainProgram = "apngasm"; 41 homepage = "https://apngasm.sourceforge.net/"; 42 license = licenses.zlib; 43 maintainers = with maintainers; [ orivej ]; 44 platforms = platforms.linux; 45 }; 46 47}