python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / aws-crt-cpp / default.nix
blobc7eac8474cb4c25edea087f2f1110998a28a3c3c
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
17 stdenv.mkDerivation rec {
18   pname = "aws-crt-cpp";
19   version = "0.18.9";
21   outputs = [ "out" "dev" ];
23   src = fetchFromGitHub {
24     owner = "awslabs";
25     repo = "aws-crt-cpp";
26     rev = "v${version}";
27     sha256 = "sha256-NEsEKUKmADevb8SSc8EFuXLc12fuOf6fXI76yVeDQno=";
28   };
30   patches = [
31     # Correct include path for split outputs.
32     # https://github.com/awslabs/aws-crt-cpp/pull/325
33     ./0001-build-Make-includedir-properly-overrideable.patch
34   ];
36   postPatch = ''
37     substituteInPlace CMakeLists.txt --replace '-Werror' ""
38   '';
40   nativeBuildInputs = [
41     cmake
42   ];
44   propagatedBuildInputs = [
45     aws-c-auth
46     aws-c-cal
47     aws-c-common
48     aws-c-compression
49     aws-c-event-stream
50     aws-c-http
51     aws-c-io
52     aws-c-mqtt
53     aws-c-s3
54     aws-checksums
55     s2n-tls
56   ];
58   cmakeFlags = [
59     "-DBUILD_DEPS=OFF"
60     "-DBUILD_SHARED_LIBS=ON"
61   ];
63   postInstall = ''
64     # Prevent dependency cycle.
65     moveToOutput lib/aws-crt-cpp/cmake "$dev"
66   '';
68   meta = with lib; {
69     description = "C++ wrapper around the aws-c-* libraries";
70     homepage = "https://github.com/awslabs/aws-crt-cpp";
71     license = licenses.asl20;
72     platforms = platforms.unix;
73     maintainers = with maintainers; [ r-burns ];
74   };