libmongocrypt: fix build on aarch64-darwin
This commit is contained in:
parent
4376e41af0
commit
c2013d056a
|
@ -1,4 +1,14 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake, pkg-config, mongoc, openssl }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, cmake
|
||||||
|
, pkg-config
|
||||||
|
, mongoc
|
||||||
|
, openssl
|
||||||
|
, darwin
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libmongocrypt";
|
pname = "libmongocrypt";
|
||||||
version = "1.7.4";
|
version = "1.7.4";
|
||||||
|
@ -20,7 +30,12 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
buildInputs = [ mongoc openssl ];
|
buildInputs = [
|
||||||
|
mongoc
|
||||||
|
openssl
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
darwin.apple_sdk.frameworks.Security
|
||||||
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
# all three of these are required to use system libbson
|
# all three of these are required to use system libbson
|
||||||
|
|
Loading…
Reference in a new issue