Commit b28253f5 authored by Yureka's avatar Yureka
Browse files

rlottie: build with meson

This works around rlottie not supporting CMake 4, and at the same time
drops some additional flags.
While some CMake metadata files are now missing, dependents should use
pkg-config to find rlottie anyways.
parent 3a4c73a2
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  meson,
  ninja,
  pkg-config,
}:
@@ -28,15 +28,11 @@ stdenv.mkDerivation rec {
  ];

  nativeBuildInputs = [
    cmake
    meson
    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__";