nixpkgs/pkgs/tools/networking/s3rs/default.nix

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

27 lines
777 B
Nix
Raw Normal View History

2021-05-29 15:23:38 +00:00
{ lib, stdenv, rustPlatform, python3, perl, openssl, Security, fetchFromGitHub, pkg-config }:
rustPlatform.buildRustPackage rec {
pname = "s3rs";
2022-10-23 02:31:03 +00:00
version = "0.4.16";
2021-05-29 15:23:38 +00:00
src = fetchFromGitHub {
owner = "yanganto";
repo = pname;
rev = "v${version}";
2022-10-23 02:31:03 +00:00
sha256 = "sha256-n95ejw6EZ4zXzP16xFoUkVn1zIMcVgINy7m5NOz063A=";
2021-05-29 15:23:38 +00:00
};
2022-10-23 02:31:03 +00:00
cargoSha256 = "sha256-eecQi03w7lq3VAsv9o+3kulwhAXPoxuDPMu/ZCQEom4=";
2021-05-29 15:23:38 +00:00
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 ];
};
}