Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / aws-c-s3 / default.nix
blobca07b930109ee2f74f9a82afbb8e8a3d75eeb16e
1 { lib, stdenv
2 , fetchFromGitHub
3 , aws-c-auth
4 , aws-c-cal
5 , aws-c-common
6 , aws-c-compression
7 , aws-c-http
8 , aws-c-io
9 , aws-checksums
10 , cmake
11 , nix
12 , s2n-tls
15 stdenv.mkDerivation rec {
16   pname = "aws-c-s3";
17   version = "0.3.13";
19   src = fetchFromGitHub {
20     owner = "awslabs";
21     repo = "aws-c-s3";
22     rev = "v${version}";
23     sha256 = "sha256-SXMDyzQ8hjPx9q9GhE11lYjj3IZY35mvUWELlYQmgGU=";
24   };
26   nativeBuildInputs = [
27     cmake
28   ];
30   buildInputs = [
31     aws-c-auth
32     aws-c-cal
33     aws-c-common
34     aws-c-compression
35     aws-c-http
36     aws-c-io
37     aws-checksums
38     s2n-tls
39   ];
41   cmakeFlags = [
42     "-DBUILD_SHARED_LIBS=ON"
43   ];
45   passthru.tests = {
46     inherit nix;
47   };
49   meta = with lib; {
50     description = "C99 library implementation for communicating with the S3 service";
51     homepage = "https://github.com/awslabs/aws-c-s3";
52     license = licenses.asl20;
53     maintainers = with maintainers; [ r-burns ];
54     mainProgram = "s3";
55     platforms = platforms.unix;
56   };