Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv
2, fetchFromGitHub
3, aws-c-auth
4, aws-c-cal
5, aws-c-common
6, aws-c-compression
7, aws-c-event-stream
8, aws-c-http
9, aws-c-io
10, aws-c-mqtt
11, aws-c-s3
12, aws-checksums
13, cmake
14, s2n-tls
15}:
16
17stdenv.mkDerivation rec {
18 pname = "aws-crt-cpp";
19 version = "0.17.0";
20
21 src = fetchFromGitHub {
22 owner = "awslabs";
23 repo = "aws-crt-cpp";
24 rev = "v${version}";
25 sha256 = "0ijvyg3hrh1d0npca62syz8qy6nkqh90fq54cqyln0p333z16q52";
26 };
27
28 postPatch = ''
29 substituteInPlace CMakeLists.txt --replace '-Werror' ""
30 '';
31
32 nativeBuildInputs = [
33 cmake
34 ];
35
36 propagatedBuildInputs = [
37 aws-c-auth
38 aws-c-cal
39 aws-c-common
40 aws-c-compression
41 aws-c-event-stream
42 aws-c-http
43 aws-c-io
44 aws-c-mqtt
45 aws-c-s3
46 aws-checksums
47 s2n-tls
48 ];
49
50 cmakeFlags = [
51 "-DBUILD_DEPS=OFF"
52 "-DCMAKE_SKIP_BUILD_RPATH=OFF"
53 "-DBUILD_SHARED_LIBS=ON"
54 ];
55
56 meta = with lib; {
57 description = "C++ wrapper around the aws-c-* libraries";
58 homepage = "https://github.com/awslabs/aws-crt-cpp";
59 license = licenses.asl20;
60 platforms = platforms.unix;
61 maintainers = with maintainers; [ r-burns ];
62 };
63}