2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchzip, libpng, zlib, zopfli }:
|
2020-01-21 01:44:53 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-21 01:44:53 +00:00
|
|
|
description = "Create highly optimized Animated PNG files from PNG/TGA images";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "apngasm";
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://apngasm.sourceforge.net/";
|
2020-01-21 01:44:53 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|