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