1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchpatch,
6 cmake,
7 boost,
8 libpng,
9 zlib,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "apngasm";
14 version = "3.1.10";
15
16 src = fetchFromGitHub {
17 owner = pname;
18 repo = pname;
19 rev = "f105b2d6024ef3113bb407d68e27e476a17fa998";
20 sha256 = "sha256-lTk2sTllKHRUaWPPEkC4qU5K10oRaLrdWBgN4MUGKeo=";
21 };
22
23 patches = [
24 # Fix parallel build and avoid static linking of binary.
25 (fetchpatch {
26 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/apngasm/files/apngasm-3.1.10-static.patch?id=45fd0cde71ca2ae0e7e38ab67400d84b86b593d7";
27 sha256 = "sha256-eKthgInWxXEqN5PupvVf9wVQDElxsPYRFXT7pMc6vIU=";
28 })
29 ];
30
31 nativeBuildInputs = [ cmake ];
32
33 buildInputs = [
34 boost
35 libpng
36 zlib
37 ];
38
39 meta = with lib; {
40 description = "Create an APNG from multiple PNG files";
41 homepage = "https://github.com/apngasm/apngasm";
42 license = licenses.zlib;
43 maintainers = with maintainers; [ orivej ];
44 platforms = platforms.linux;
45 mainProgram = "apngasm";
46 };
47
48}