8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
35 lines
803 B
Nix
35 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;
|
|
};
|
|
|
|
}
|