lol
at 24.05-pre 40 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, fetchpatch 5, meson 6, ninja 7, pkg-config 8}: 9 10stdenv.mkDerivation rec { 11 pname = "rlottie"; 12 version = "0.2"; 13 14 src = fetchFromGitHub { 15 owner = "Samsung"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "10bxr1zf9wxl55d4cw2j02r6sgqln7mbxplhhfvhw0z92fi40kr3"; 19 }; 20 21 patches = [ 22 # Fixed build with GCC 11 23 (fetchpatch { 24 url = "https://github.com/Samsung/rlottie/commit/2d7b1fa2b005bba3d4b45e8ebfa632060e8a157a.patch"; 25 hash = "sha256-2JPsj0WiBMMu0N3NUYDrHumvPN2YS8nPq5Zwagx6UWE="; 26 }) 27 ]; 28 29 nativeBuildInputs = [ meson ninja pkg-config ]; 30 31 env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-U__ARM_NEON__"; 32 33 meta = with lib; { 34 homepage = "https://github.com/Samsung/rlottie"; 35 description = "A platform independent standalone c++ library for rendering vector based animations and art in realtime"; 36 license = with licenses; [ mit bsd3 mpl11 ftl ]; 37 platforms = platforms.all; 38 maintainers = with maintainers; [ CRTified ]; 39 }; 40}