nixpkgs/pkgs/development/libraries/aws-c-s3/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
988 B
Nix
Raw Normal View History

2021-09-25 19:17:29 +00:00
{ lib, stdenv
, fetchFromGitHub
, aws-c-auth
, aws-c-cal
, aws-c-common
, aws-c-compression
, aws-c-http
, aws-c-io
2022-04-30 21:32:31 +00:00
, aws-checksums
2021-09-25 19:17:29 +00:00
, cmake
2022-09-02 23:47:57 +00:00
, nix
2021-09-25 19:17:29 +00:00
, s2n-tls
}:
stdenv.mkDerivation rec {
pname = "aws-c-s3";
version = "0.5.7";
2021-09-25 19:17:29 +00:00
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-c-s3";
rev = "v${version}";
hash = "sha256-zzsRYhLgJfd02fPgoZBf7n6dTfbLHarc1aQa0fx/uck=";
2021-09-25 19:17:29 +00:00
};
nativeBuildInputs = [
cmake
];
buildInputs = [
aws-c-auth
aws-c-cal
aws-c-common
aws-c-compression
aws-c-http
aws-c-io
2022-04-30 21:32:31 +00:00
aws-checksums
2021-09-25 19:17:29 +00:00
s2n-tls
];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
];
2022-09-02 23:47:57 +00:00
passthru.tests = {
inherit nix;
};
2021-09-25 19:17:29 +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 ];
mainProgram = "s3";
platforms = platforms.unix;
2021-09-25 19:17:29 +00:00
};
}