1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/graphics/apngasm/2.nix
Orivej Desh ff708504cd apngasm_2: init at 2.91
This is the original apngasm which has not been updated since 2017 but it has
diverged from its fork with support for LZMA and ZOPFLI compression and TGA
input.
2020-01-21 01:44:53 +00:00

36 lines
803 B
Nix

{ stdenv, fetchzip, libpng, zlib, zopfli }:
stdenv.mkDerivation rec {
pname = "apngasm";
version = "2.91";
src = fetchzip {
url = "mirror://sourceforge/${pname}/${pname}-${version}-src.zip";
stripRoot = false;
sha256 = "0qhljqql159xkn1l83vz0q8wvzr7rjz4jnhiy0zn36pgvacg0zn1";
};
buildInputs = [ libpng zlib zopfli ];
postPatch = ''
rm -rf libpng zlib zopfli
'';
NIX_CFLAGS_LINK = "-lzopfli";
installPhase = ''
install -Dt $out/bin apngasm
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Create highly optimized Animated PNG files from PNG/TGA images";
homepage = "http://apngasm.sourceforge.net/";
license = licenses.zlib;
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
};
}