Merge pull request #33473 from dtzWill/fix/aws-sdk-cpp-cross

aws-sdk-cpp: Enable cross-compilation
This commit is contained in:
Orivej Desh 2018-01-06 03:59:21 +00:00 committed by GitHub
commit 769d7dad66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,8 @@ in stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
separateDebugInfo = stdenv.isLinux;
buildInputs = [ cmake curl ];
nativeBuildInputs = [ cmake curl ];
buildInputs = [ zlib curl openssl ];
cmakeFlags =
lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
@ -51,10 +52,6 @@ in stdenv.mkDerivation rec {
rm aws-cpp-sdk-core-tests/aws/auth/AWSCredentialsProviderTest.cpp
'';
NIX_LDFLAGS = lib.concatStringsSep " " (
(map (pkg: "-rpath ${lib.getOutput "lib" pkg}/lib"))
[ curl openssl zlib stdenv.cc.cc ]);
meta = {
description = "A C++ interface for Amazon Web Services";
homepage = https://github.com/awslabs/aws-sdk-cpp;