summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2020-01-21 01:44:53 +0000
committerOrivej Desh <orivej@gmx.fr>2020-01-21 01:44:53 +0000
commitff708504cd2fa33a1b042ebd9da78187411ac66d (patch)
treee51be1a93dd8e71898d634a278bfcb2e41973395 /pkgs/applications/graphics
parente902495a51a0023197900c906edef501bc9c9a07 (diff)
downloadnixpkgs-ff708504cd2fa33a1b042ebd9da78187411ac66d.tar
nixpkgs-ff708504cd2fa33a1b042ebd9da78187411ac66d.tar.gz
nixpkgs-ff708504cd2fa33a1b042ebd9da78187411ac66d.tar.bz2
nixpkgs-ff708504cd2fa33a1b042ebd9da78187411ac66d.tar.lz
nixpkgs-ff708504cd2fa33a1b042ebd9da78187411ac66d.tar.xz
nixpkgs-ff708504cd2fa33a1b042ebd9da78187411ac66d.tar.zst
nixpkgs-ff708504cd2fa33a1b042ebd9da78187411ac66d.zip
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.
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/apngasm/2.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/apngasm/2.nix b/pkgs/applications/graphics/apngasm/2.nix
new file mode 100644
index 00000000000..166bc135c19
--- /dev/null
+++ b/pkgs/applications/graphics/apngasm/2.nix
@@ -0,0 +1,35 @@
+{ 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;
+  };
+
+}