mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
7565c2e455
3.1.9 had issues with building and 3.1.10 has been released fixing those; a parallel building error has been found and it is fixed on Gentoo repository, from where we grab the patch from. Log of error: https://hydra.nixos.org/log/6nh56zf7y81p0m6xxynw22wj1kaxrjbd-apngasm-3.1.9.drv Refs: ZHF: #172160 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
35 lines
997 B
Nix
35 lines
997 B
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, libpng, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "apngasm";
|
|
version = "3.1.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "f105b2d6024ef3113bb407d68e27e476a17fa998";
|
|
sha256 = "sha256-lTk2sTllKHRUaWPPEkC4qU5K10oRaLrdWBgN4MUGKeo=";
|
|
};
|
|
|
|
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=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ boost libpng zlib ];
|
|
|
|
meta = with lib; {
|
|
description = "Create an APNG from multiple PNG files";
|
|
homepage = "https://github.com/apngasm/apngasm";
|
|
license = licenses.zlib;
|
|
maintainers = with maintainers; [ orivej ];
|
|
platforms = platforms.linux;
|
|
};
|
|
|
|
}
|