Skip to content

Commit b60873e

Browse files
committedNov 28, 2016
aws-sdk-cpp: 0.10.6 -> 1.0.34
1 parent 8eefcb5 commit b60873e

File tree

1 file changed

+8
-15
lines changed
  • pkgs/development/libraries/aws-sdk-cpp

1 file changed

+8
-15
lines changed
 

‎pkgs/development/libraries/aws-sdk-cpp/default.nix

+8-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, stdenv, fetchFromGitHub, cmake, curl
1+
{ lib, stdenv, fetchFromGitHub, cmake, curl, libuuid, openssl, zlib
22
, # Allow building a limited set of APIs, e.g. ["s3" "ec2"].
33
apis ? ["*"]
44
, # Whether to enable AWS' custom memory management.
@@ -7,25 +7,21 @@
77

88
stdenv.mkDerivation rec {
99
name = "aws-sdk-cpp-${version}";
10-
version = "0.10.6";
10+
version = "1.0.34";
1111

1212
src = fetchFromGitHub {
1313
owner = "awslabs";
1414
repo = "aws-sdk-cpp";
1515
rev = version;
16-
sha256 = "1x3xam7vprlld6iqhqgdhgmqyclfy8dvzgy3375cijy9akhvv67i";
16+
sha256 = "09vag1ybfqvw37djmd9g740iqjvg8nwr4p0xb21rfj06vazrdg4b";
1717
};
1818

19-
buildInputs = [ cmake curl ];
19+
buildInputs = [ cmake curl libuuid ];
2020

2121
cmakeFlags =
2222
lib.optional (!customMemoryManagement) "-DCUSTOM_MEMORY_MANAGEMENT=0"
2323
++ lib.optional (apis != ["*"])
24-
"-DBUILD_ONLY=${lib.concatMapStringsSep ";" (api: "aws-cpp-sdk-" + api) apis}";
25-
26-
# curl upgrade to 7.50.0 (#17152) changes the libcurl headers slightly and
27-
# therefore requires the followin flag until this package gets updated
28-
NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
24+
"-DBUILD_ONLY=${lib.concatStringsSep ";" apis}";
2925

3026
enableParallelBuilding = true;
3127

@@ -37,12 +33,9 @@ stdenv.mkDerivation rec {
3733
done
3834
'';
3935

40-
postInstall =
41-
''
42-
# Move the .so files to a more reasonable location.
43-
mv $out/lib/linux/*/Release/*.so $out/lib
44-
rm -rf $out/lib/linux
45-
'';
36+
NIX_LDFLAGS = lib.concatStringsSep " " (
37+
(map (pkg: "-rpath ${lib.getOutput "lib" pkg}/lib"))
38+
[ libuuid curl openssl zlib stdenv.cc.cc ]);
Has a conversation. Original line has a conversation.
4639

4740
meta = {
4841
description = "A C++ interface for Amazon Web Services";

0 commit comments

Comments
 (0)
Please sign in to comment.