2021-10-17 02:12:59 +00:00
|
|
|
{ lib, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aws-c-auth
|
|
|
|
, aws-c-cal
|
|
|
|
, aws-c-common
|
|
|
|
, aws-c-compression
|
|
|
|
, aws-c-http
|
|
|
|
, aws-c-io
|
2022-05-18 14:49:53 +00:00
|
|
|
, aws-checksums
|
2021-10-17 02:12:59 +00:00
|
|
|
, cmake
|
2022-09-09 14:08:57 +00:00
|
|
|
, nix
|
2021-10-17 02:12:59 +00:00
|
|
|
, s2n-tls
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aws-c-s3";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "0.3.13";
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "aws-c-s3";
|
|
|
|
rev = "v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
sha256 = "sha256-SXMDyzQ8hjPx9q9GhE11lYjj3IZY35mvUWELlYQmgGU=";
|
2021-10-17 02:12:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
aws-c-auth
|
|
|
|
aws-c-cal
|
|
|
|
aws-c-common
|
|
|
|
aws-c-compression
|
|
|
|
aws-c-http
|
|
|
|
aws-c-io
|
2022-05-18 14:49:53 +00:00
|
|
|
aws-checksums
|
2021-10-17 02:12:59 +00:00
|
|
|
s2n-tls
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit nix;
|
|
|
|
};
|
|
|
|
|
2021-10-17 02:12:59 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "C99 library implementation for communicating with the S3 service";
|
|
|
|
homepage = "https://github.com/awslabs/aws-c-s3";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ r-burns ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "s3";
|
|
|
|
platforms = platforms.unix;
|
2021-10-17 02:12:59 +00:00
|
|
|
};
|
|
|
|
}
|