3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #31650 from matthewbauer/aws-sdk-cpp-darwin-fix

aws-sdk-cpp: fix on darwin
This commit is contained in:
Daiderd Jordan 2018-02-17 20:53:12 +01:00 committed by GitHub
commit 2e33da997d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
apis ? ["*"]
, # Whether to enable AWS' custom memory management.
customMemoryManagement ? true
, darwin
}:
let
@ -29,7 +30,11 @@ in stdenv.mkDerivation rec {
separateDebugInfo = stdenv.isLinux;
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 =
lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"