mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
apng2gif: init at 1.8
This commit is contained in:
parent
f4163f2387
commit
b606e81166
41
pkgs/tools/graphics/apng2gif/default.nix
Normal file
41
pkgs/tools/graphics/apng2gif/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue