aws-sdk-cpp: propagate Security framework
We need to propagate the Security framework to avoid getting ld: file not found: /System/Library/Frameworks/Security.framework/Versions/A/Security for architecture x86_64 on linking aws-sdk-cpp libraries.
This commit is contained in:
@@ -13,15 +13,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ aws-c-cal aws-c-common s2n-tls] ++ lib.optionals stdenv.isDarwin [ Security ];
|
||||
buildInputs = [ aws-c-cal aws-c-common s2n-tls];
|
||||
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
"-DCMAKE_MODULE_PATH=${aws-c-common}/lib/cmake"
|
||||
];
|
||||
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-error";
|
||||
|
||||
meta = with lib; {
|
||||
description = "AWS SDK for C module for IO and TLS";
|
||||
homepage = "https://github.com/awslabs/aws-c-io";
|
||||
|
||||
Reference in New Issue
Block a user