2022-05-10 02:39:27 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, libpng, zlib }:
|
2020-01-21 02:39:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "apngasm";
|
2022-05-10 02:39:27 +02:00
|
|
|
version = "3.1.10";
|
2020-01-21 02:39:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-05-10 02:39:27 +02:00
|
|
|
rev = "f105b2d6024ef3113bb407d68e27e476a17fa998";
|
|
|
|
sha256 = "sha256-lTk2sTllKHRUaWPPEkC4qU5K10oRaLrdWBgN4MUGKeo=";
|
2020-01-21 02:39:41 +01:00
|
|
|
};
|
|
|
|
|
2022-05-10 02:39:27 +02:00
|
|
|
patches = [
|
|
|
|
# Fix parallel build and avoid static linking of binary.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/apngasm/files/apngasm-3.1.10-static.patch?id=45fd0cde71ca2ae0e7e38ab67400d84b86b593d7";
|
|
|
|
sha256 = "sha256-eKthgInWxXEqN5PupvVf9wVQDElxsPYRFXT7pMc6vIU=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-01-21 02:39:41 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ boost libpng zlib ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-21 02:39:41 +01:00
|
|
|
description = "Create an APNG from multiple PNG files";
|
|
|
|
homepage = "https://github.com/apngasm/apngasm";
|
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
2024-02-11 03:19:15 +01:00
|
|
|
mainProgram = "apngasm";
|
2020-01-21 02:39:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|