forked from mirrors/nixpkgs
Merge pull request #116099 from matthewbauer/fix-aws-sdk-cpp-on-big-sur-2
aws-sdk-cpp: propagate Security framework
This commit is contained in:
commit
8b51a45a55
|
@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [ aws-c-common openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
||||
buildInputs = [ aws-c-common openssl ];
|
||||
|
||||
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -26,12 +26,15 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [
|
||||
curl openssl s2n-tls zlib
|
||||
aws-c-cal aws-c-common aws-c-event-stream aws-c-io aws-checksums
|
||||
aws-c-common aws-c-event-stream aws-checksums
|
||||
] ++ lib.optionals (stdenv.isDarwin &&
|
||||
((builtins.elem "text-to-speech" apis) ||
|
||||
(builtins.elem "*" apis)))
|
||||
[ CoreAudio AudioToolbox ];
|
||||
|
||||
# propagation is needed for Security.framework to be available when linking
|
||||
propagatedBuildInputs = [ aws-c-cal aws-c-io ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_DEPS=OFF"
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
|
||||
|
|
Loading…
Reference in a new issue