9 stdenv.mkDerivation rec {
14 url = "mirror://sourceforge/gif2apng/gif2apng-${version}-src.zip";
16 hash = "sha256-rt1Vp4hjeFAVWJOU04BdU2YvBwECe9Q1c7EpNpIN+uE=";
21 url = "https://sources.debian.org/data/main/g/gif2apng/1.9%2Bsrconly-3%2Bdeb11u1/debian/patches/10-7z.patch";
22 hash = "sha256-zQgSWP/CIGaTUIxP/X92zpAQVSGgVo8gQEoCCMn+XT0=";
25 url = "https://sources.debian.org/data/main/g/gif2apng/1.9%2Bsrconly-3%2Bdeb11u1/debian/patches/CVE-2021-45909.patch";
26 hash = "sha256-ZDN3xgvktgahDEtrEpyVsL+4u+97Fo9vAB1RSKhu8KA=";
29 url = "https://sources.debian.org/data/main/g/gif2apng/1.9%2Bsrconly-3%2Bdeb11u1/debian/patches/CVE-2021-45910.patch";
30 hash = "sha256-MzOUOC7kqH22DmTMXoDu+jZAMBJPndnFNJGAQv5FcdI=";
33 url = "https://sources.debian.org/data/main/g/gif2apng/1.9%2Bsrconly-3%2Bdeb11u1/debian/patches/CVE-2021-45911.patch";
34 hash = "sha256-o2YDHsSaorCx/6bQQfudzkLHo9pakgyvs2Pbafplnek=";
49 buildFlagsArray+=("LIBS=-lzopfli -lstdc++ -lz")
52 makeFlags = [ "CC=${stdenv.cc.targetPrefix}c++" ];
54 NIX_CFLAGS_COMPILE="-DENABLE_LOCAL_ZOPFLI";
58 install -Dm755 gif2apng $out/bin/gif2apng
63 homepage = "https://gif2apng.sourceforge.net/";
64 description = "Simple program that converts animations from GIF to APNG format";
65 license = licenses.zlib;
66 maintainers = with maintainers; [ fgaz ];
67 platforms = platforms.all;