1
- { lib , stdenv , fetchFromGitHub , cmake , curl
1
+ { lib , stdenv , fetchFromGitHub , cmake , curl , libuuid , openssl , zlib
2
2
, # Allow building a limited set of APIs, e.g. ["s3" "ec2"].
3
3
apis ? [ "*" ]
4
4
, # Whether to enable AWS' custom memory management.
7
7
8
8
stdenv . mkDerivation rec {
9
9
name = "aws-sdk-cpp-${ version } " ;
10
- version = "0.10.6 " ;
10
+ version = "1.0.34 " ;
11
11
12
12
src = fetchFromGitHub {
13
13
owner = "awslabs" ;
14
14
repo = "aws-sdk-cpp" ;
15
15
rev = version ;
16
- sha256 = "1x3xam7vprlld6iqhqgdhgmqyclfy8dvzgy3375cijy9akhvv67i " ;
16
+ sha256 = "09vag1ybfqvw37djmd9g740iqjvg8nwr4p0xb21rfj06vazrdg4b " ;
17
17
} ;
18
18
19
- buildInputs = [ cmake curl ] ;
19
+ buildInputs = [ cmake curl libuuid ] ;
20
20
21
21
cmakeFlags =
22
22
lib . optional ( ! customMemoryManagement ) "-DCUSTOM_MEMORY_MANAGEMENT=0"
23
23
++ 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 } " ;
29
25
30
26
enableParallelBuilding = true ;
31
27
@@ -37,12 +33,9 @@ stdenv.mkDerivation rec {
37
33
done
38
34
'' ;
39
35
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. 46
39
47
40
meta = {
48
41
description = "A C++ interface for Amazon Web Services" ;