2022-03-25 14:07:42 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2020-07-29 21:59:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rlottie";
|
2021-06-06 11:15:36 +00:00
|
|
|
version = "0.2";
|
2020-07-29 21:59:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Samsung";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-06 11:15:36 +00:00
|
|
|
sha256 = "10bxr1zf9wxl55d4cw2j02r6sgqln7mbxplhhfvhw0z92fi40kr3";
|
2020-07-29 21:59:46 +00:00
|
|
|
};
|
|
|
|
|
2022-03-25 14:07:42 +00:00
|
|
|
patches = [
|
|
|
|
# Fixed build with GCC 11
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Samsung/rlottie/commit/2d7b1fa2b005bba3d4b45e8ebfa632060e8a157a.patch";
|
|
|
|
hash = "sha256-2JPsj0WiBMMu0N3NUYDrHumvPN2YS8nPq5Zwagx6UWE=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-07-29 21:59:46 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-U__ARM_NEON__";
|
2023-01-04 10:43:34 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-07-29 21:59:46 +00:00
|
|
|
homepage = "https://github.com/Samsung/rlottie";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A platform independent standalone c++ library for rendering vector based animations and art in realtime";
|
2021-06-06 11:15:36 +00:00
|
|
|
license = with licenses; [ mit bsd3 mpl11 ftl ];
|
2020-07-29 21:59:46 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ CRTified ];
|
|
|
|
};
|
|
|
|
}
|