aws-sdk-cpp: 0.10.6 -> 1.0.34
This commit is contained in:
parent
8eefcb5c09
commit
b60873ed99
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake, curl
|
{ lib, stdenv, fetchFromGitHub, cmake, curl, libuuid, openssl, zlib
|
||||||
, # Allow building a limited set of APIs, e.g. ["s3" "ec2"].
|
, # Allow building a limited set of APIs, e.g. ["s3" "ec2"].
|
||||||
apis ? ["*"]
|
apis ? ["*"]
|
||||||
, # Whether to enable AWS' custom memory management.
|
, # Whether to enable AWS' custom memory management.
|
||||||
@ -7,25 +7,21 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "aws-sdk-cpp-${version}";
|
name = "aws-sdk-cpp-${version}";
|
||||||
version = "0.10.6";
|
version = "1.0.34";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "awslabs";
|
owner = "awslabs";
|
||||||
repo = "aws-sdk-cpp";
|
repo = "aws-sdk-cpp";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1x3xam7vprlld6iqhqgdhgmqyclfy8dvzgy3375cijy9akhvv67i";
|
sha256 = "09vag1ybfqvw37djmd9g740iqjvg8nwr4p0xb21rfj06vazrdg4b";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake curl ];
|
buildInputs = [ cmake curl libuuid ];
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
|
lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
|
||||||
++ lib.optional (apis != ["*"])
|
++ lib.optional (apis != ["*"])
|
||||||
"-DBUILD_ONLY=${lib.concatMapStringsSep ";" (api: "aws-cpp-sdk-" + api) apis}";
|
"-DBUILD_ONLY=${lib.concatStringsSep ";" apis}";
|
||||||
|
|
||||||
# curl upgrade to 7.50.0 (#17152) changes the libcurl headers slightly and
|
|
||||||
# therefore requires the followin flag until this package gets updated
|
|
||||||
NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
@ -37,12 +33,9 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall =
|
NIX_LDFLAGS = lib.concatStringsSep " " (
|
||||||
''
|
(map (pkg: "-rpath ${lib.getOutput "lib" pkg}/lib"))
|
||||||
# Move the .so files to a more reasonable location.
|
[ libuuid curl openssl zlib stdenv.cc.cc ]);
|
||||||
mv $out/lib/linux/*/Release/*.so $out/lib
|
|
||||||
rm -rf $out/lib/linux
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A C++ interface for Amazon Web Services";
|
description = "A C++ interface for Amazon Web Services";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user