core/pkgs/by-name/aw/aws-c-s3/default.nix

42 lines
966 B
Nix
Raw Normal View History

2024-05-13 21:24:10 +00:00
{ lib, stdenv, fetchFromGitHub, aws-c-auth, aws-c-cal, aws-c-common
, aws-c-compression, aws-c-http, aws-c-io, aws-checksums, cmake, nix, s2n-tls }:
2024-05-02 00:46:19 +00:00
stdenv.mkDerivation rec {
pname = "aws-c-s3";
version = "0.5.4";
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-c-s3";
rev = "v${version}";
hash = "sha256-8eKQsP7AftNDccsZHPC9PcwpbpgZSvsioUuSsiggQDs=";
};
2024-05-13 21:24:10 +00:00
nativeBuildInputs = [ cmake ];
2024-05-02 00:46:19 +00:00
buildInputs = [
aws-c-auth
aws-c-cal
aws-c-common
aws-c-compression
aws-c-http
aws-c-io
aws-checksums
s2n-tls
];
2024-05-13 21:24:10 +00:00
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
2024-05-02 00:46:19 +00:00
2024-05-13 21:24:10 +00:00
passthru.tests = { inherit nix; };
2024-05-02 00:46:19 +00:00
meta = with lib; {
2024-05-13 21:24:10 +00:00
description =
"C99 library implementation for communicating with the S3 service";
2024-05-02 00:46:19 +00:00
homepage = "https://github.com/awslabs/aws-c-s3";
license = licenses.asl20;
maintainers = with maintainers; [ r-burns ];
mainProgram = "s3";
platforms = platforms.unix;
};
}