Unverified Commit f158eb3d authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #232465 from figsoda/mongo

libmongocrypt: fix build on aarch64-darwin
parents 02f08ed5 c2013d05
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake, pkg-config, mongoc, openssl }:
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, mongoc
, openssl
, darwin
}:

stdenv.mkDerivation rec {
  pname = "libmongocrypt";
  version = "1.7.4";
@@ -20,7 +30,12 @@ stdenv.mkDerivation rec {
  ];

  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [ mongoc openssl ];
  buildInputs = [
    mongoc
    openssl
  ] ++ lib.optionals stdenv.isDarwin [
    darwin.apple_sdk.frameworks.Security
  ];

  cmakeFlags = [
    # all three of these are required to use system libbson