Merge pull request #31650 from matthewbauer/aws-sdk-cpp-darwin-fix
aws-sdk-cpp: fix on darwin
This commit is contained in:
commit
2e33da997d
@ -3,6 +3,7 @@
|
|||||||
apis ? ["*"]
|
apis ? ["*"]
|
||||||
, # Whether to enable AWS' custom memory management.
|
, # Whether to enable AWS' custom memory management.
|
||||||
customMemoryManagement ? true
|
customMemoryManagement ? true
|
||||||
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -29,7 +30,11 @@ in stdenv.mkDerivation rec {
|
|||||||
separateDebugInfo = stdenv.isLinux;
|
separateDebugInfo = stdenv.isLinux;
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake curl ];
|
nativeBuildInputs = [ cmake curl ];
|
||||||
buildInputs = [ zlib curl openssl ];
|
buildInputs = [ zlib curl openssl ]
|
||||||
|
++ lib.optionals (stdenv.isDarwin &&
|
||||||
|
((builtins.elem "text-to-speech" apis) ||
|
||||||
|
(builtins.elem "*" apis)))
|
||||||
|
(with darwin.apple_sdk.frameworks; [ CoreAudio AudioToolbox ]);
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
|
lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
|
||||||
|
Loading…
Reference in New Issue
Block a user