Commit 85bd7b3b authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

materialize: fix build on darwin

parent 17358c64
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@
  libclang,
  openssl,
  rdkafka,
  apple-sdk_11,
  darwinMinVersionHook,
}:

let
@@ -134,10 +136,16 @@ rustPlatform.buildRustPackage rec {
  # Needed to get openssl-sys to use pkg-config.
  OPENSSL_NO_VENDOR = 1;

  buildInputs = [
  buildInputs =
    [
      libclang
      openssl
      rdkafka
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      # error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer
      apple-sdk_11
      (darwinMinVersionHook "10.13")
    ];

  # the check phase requires linking with rocksdb which can be a problem since