apng2gif: init at 1.8

This commit is contained in:
Francesco Gazzetta 2023-03-30 18:21:22 +02:00
parent f4163f2387
commit b606e81166
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, stdenv
, fetchzip
, libpng
}:
stdenv.mkDerivation rec {
pname = "apng2gif";
version = "1.8";
src = fetchzip {
url = "mirror://sourceforge/apng2gif/apng2gif-${version}-src.zip";
stripRoot = false;
hash = "sha256-qX8gmE0Lu2p15kL0y6cmX/bI0uk5Ehfi8ygt07BbgmU=";
};
# Remove bundled libs
postPatch = ''
rm -r libpng zlib
'';
buildInputs = [
libpng
];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}c++" ];
installPhase = ''
runHook preInstall
install -Dm755 apng2gif $out/bin/apng2gif
runHook postInstall
'';
meta = with lib; {
homepage = "https://apng2gif.sourceforge.net/";
description = "A simple program that converts APNG files to animated GIF format";
license = licenses.zlib;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.all;
};
}

View File

@ -17326,6 +17326,8 @@ with pkgs;
apacheKafka_3_2 = callPackage ../servers/apache-kafka { majorVersion = "3.2"; };
apacheKafka_3_3 = callPackage ../servers/apache-kafka { majorVersion = "3.3"; };
apng2gif = callPackage ../tools/graphics/apng2gif { };
kt = callPackage ../tools/misc/kt { };
argbash = callPackage ../development/tools/misc/argbash { };