aws-c-io: depend on Security.framework on darwin

This is needed on `aarch64-darwin` with newer SDK.
This commit is contained in:
Ivan Babrou 2021-03-01 23:54:54 -08:00
parent 7f59c462bc
commit fbc1d07e79
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, aws-c-cal, aws-c-common, s2n }:
{ lib, stdenv, fetchFromGitHub, cmake, aws-c-cal, aws-c-common, s2n, Security }:
stdenv.mkDerivation rec {
pname = "aws-c-io";
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ aws-c-cal aws-c-common s2n ];
buildInputs = [ aws-c-cal aws-c-common s2n] ++ lib.optionals stdenv.isDarwin [ Security ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"

View file

@ -13287,7 +13287,9 @@ in
aws-c-event-stream = callPackage ../development/libraries/aws-c-event-stream { };
aws-c-io = callPackage ../development/libraries/aws-c-io { };
aws-c-io = callPackage ../development/libraries/aws-c-io {
inherit (darwin.apple_sdk.frameworks) Security;
};
aws-checksums = callPackage ../development/libraries/aws-checksums { };