Files
nixpkgs/pkgs/by-name/rl/rlottie/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
ninja,
pkg-config,
}:
stdenv.mkDerivation rec {
pname = "rlottie";
version = "0.2";
src = fetchFromGitHub {
owner = "Samsung";
repo = "rlottie";
rev = "v${version}";
sha256 = "10bxr1zf9wxl55d4cw2j02r6sgqln7mbxplhhfvhw0z92fi40kr3";
};
patches = [
# Fixed build with GCC 11
(fetchpatch {
url = "https://github.com/Samsung/rlottie/commit/2d7b1fa2b005bba3d4b45e8ebfa632060e8a157a.patch";
hash = "sha256-2JPsj0WiBMMu0N3NUYDrHumvPN2YS8nPq5Zwagx6UWE=";
})
];
nativeBuildInputs = [
cmake
ninja
pkg-config
];
cmakeFlags = [
(lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib")
];
env.NIX_CFLAGS_COMPILE = lib.optionalString (
stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64
) "-U__ARM_NEON__";
meta = with lib; {
homepage = "https://github.com/Samsung/rlottie";
description = "Platform independent standalone c++ library for rendering vector based animations and art in realtime";
license = with licenses; [
mit
bsd3
mpl11
ftl
];
platforms = platforms.all;
maintainers = with maintainers; [ CRTified ];
};
}