aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/aws-sdk-cpp
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2019-02-12 23:38:13 +0100
committerDaiderd Jordan <daiderd@gmail.com>2019-02-12 23:38:13 +0100
commita4a7fd8d681b2af9ff81a74b2ab457c58b07e1ae (patch)
tree288e0aa4cc656efc34fe41c539d18497859bc0c2 /pkgs/development/libraries/aws-sdk-cpp
parent91c7157919081c5bbc8cb808e27d89ed4a8cbef7 (diff)
aws-sdk-cpp: fix darwin sandbox build
The tests use localhost networking, which is disallowed by default in the darwin sandbox.
Diffstat (limited to 'pkgs/development/libraries/aws-sdk-cpp')
-rw-r--r--pkgs/development/libraries/aws-sdk-cpp/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/libraries/aws-sdk-cpp/default.nix b/pkgs/development/libraries/aws-sdk-cpp/default.nix
index 0825cdcfc098..a5517a2522dc 100644
--- a/pkgs/development/libraries/aws-sdk-cpp/default.nix
+++ b/pkgs/development/libraries/aws-sdk-cpp/default.nix
@@ -1,9 +1,9 @@
{ lib, stdenv, fetchFromGitHub, cmake, curl, openssl, zlib
+, CoreAudio, AudioToolbox
, # Allow building a limited set of APIs, e.g. ["s3" "ec2"].
apis ? ["*"]
, # Whether to enable AWS' custom memory management.
customMemoryManagement ? true
-, darwin
}:
let
@@ -34,10 +34,10 @@ in stdenv.mkDerivation rec {
++ lib.optionals (stdenv.isDarwin &&
((builtins.elem "text-to-speech" apis) ||
(builtins.elem "*" apis)))
- (with darwin.apple_sdk.frameworks; [ CoreAudio AudioToolbox ]);
+ [ CoreAudio AudioToolbox ];
cmakeFlags =
- lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
+ lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "-DENABLE_TESTING=OFF"
++ lib.optional (apis != ["*"])
"-DBUILD_ONLY=${lib.concatStringsSep ";" apis}";
@@ -60,6 +60,8 @@ in stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = [ "-Wno-error=noexcept-type" ];
+ __darwinAllowLocalNetworking = true;
+
meta = {
description = "A C++ interface for Amazon Web Services";
homepage = https://github.com/awslabs/aws-sdk-cpp;