@@ -0,0 +1,26 @@
1+{ lib, stdenv, rustPlatform, python3, perl, openssl, Security, fetchFromGitHub, pkg-config }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "s3rs";
5+ version = "0.4.8";
6+
7+ src = fetchFromGitHub {
8+ owner = "yanganto";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "sha256-lYIE5yR7UNUjpqfwT6R0C0ninNvVZdatYd/n+yyGsms=";
12+ };
13+
14+ cargoSha256 = "sha256-vCTJ7TClvuIP9IoqXwNFH7/u9jXt/Ue/Dhefx5rCgmA=";
15+
16+ nativeBuildInputs = [ python3 perl pkg-config ];
17+ buildInputs = [ openssl ]
18+ ++ lib.optionals stdenv.isDarwin [ Security ];
19+
20+ meta = with lib; {
21+ description = "A s3 cli client with multi configs with diffent provider";
22+ homepage = "https://github.com/yanganto/s3rs";
23+ license = licenses.mit;
24+ maintainers = with maintainers; [ yanganto ];
25+ };
26+}