aws-sdk-cpp: Enable cross-compilation

This commit is contained in:
Ben Gamari 2017-12-10 10:14:24 -05:00 committed by Will Dietz
parent a7ef0c03d2
commit 716194de50

@ -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;