Merge pull request #33473 from dtzWill/fix/aws-sdk-cpp-cross
aws-sdk-cpp: Enable cross-compilation
This commit is contained in:
commit
769d7dad66
@ -28,7 +28,8 @@ in stdenv.mkDerivation rec {
|
|||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
separateDebugInfo = stdenv.isLinux;
|
separateDebugInfo = stdenv.isLinux;
|
||||||
|
|
||||||
buildInputs = [ cmake curl ];
|
nativeBuildInputs = [ cmake curl ];
|
||||||
|
buildInputs = [ zlib curl openssl ];
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
|
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
|
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 = {
|
meta = {
|
||||||
description = "A C++ interface for Amazon Web Services";
|
description = "A C++ interface for Amazon Web Services";
|
||||||
homepage = https://github.com/awslabs/aws-sdk-cpp;
|
homepage = https://github.com/awslabs/aws-sdk-cpp;
|
||||||
|
Loading…
Reference in New Issue
Block a user