diff options
author | Antonio Yang <yanganto@gmail.com> | 2021-05-29 23:23:38 +0800 |
---|---|---|
committer | Antonio Yang <yanganto@gmail.com> | 2021-05-30 10:42:20 +0800 |
commit | df0f92daeed03f6ffe2a6d8d3ff59393eaad0229 (patch) | |
tree | 90775a67cdadb06433d6c504e82641dd05ef7546 /pkgs/tools/networking | |
parent | 152987dec4203eec9cdfa59bcfb2d68e865af09d (diff) | |
download | nixlib-df0f92daeed03f6ffe2a6d8d3ff59393eaad0229.tar nixlib-df0f92daeed03f6ffe2a6d8d3ff59393eaad0229.tar.gz nixlib-df0f92daeed03f6ffe2a6d8d3ff59393eaad0229.tar.bz2 nixlib-df0f92daeed03f6ffe2a6d8d3ff59393eaad0229.tar.lz nixlib-df0f92daeed03f6ffe2a6d8d3ff59393eaad0229.tar.xz nixlib-df0f92daeed03f6ffe2a6d8d3ff59393eaad0229.tar.zst nixlib-df0f92daeed03f6ffe2a6d8d3ff59393eaad0229.zip |
s3rs: init at 0.4.8
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/s3rs/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/networking/s3rs/default.nix b/pkgs/tools/networking/s3rs/default.nix new file mode 100644 index 000000000000..2e707ed99163 --- /dev/null +++ b/pkgs/tools/networking/s3rs/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, rustPlatform, python3, perl, openssl, Security, fetchFromGitHub, pkg-config }: + +rustPlatform.buildRustPackage rec { + pname = "s3rs"; + version = "0.4.8"; + + src = fetchFromGitHub { + owner = "yanganto"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-lYIE5yR7UNUjpqfwT6R0C0ninNvVZdatYd/n+yyGsms="; + }; + + cargoSha256 = "sha256-vCTJ7TClvuIP9IoqXwNFH7/u9jXt/Ue/Dhefx5rCgmA="; + + nativeBuildInputs = [ python3 perl pkg-config ]; + buildInputs = [ openssl ] + ++ lib.optionals stdenv.isDarwin [ Security ]; + + meta = with lib; { + description = "A s3 cli client with multi configs with diffent provider"; + homepage = "https://github.com/yanganto/s3rs"; + license = licenses.mit; + maintainers = with maintainers; [ yanganto ]; + }; +} |