2023-06-28 09:31:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "awsbck";
|
2024-03-22 16:09:41 +00:00
|
|
|
version = "0.3.8";
|
2023-06-28 09:31:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beeb";
|
|
|
|
repo = "awsbck";
|
|
|
|
rev = "v${version}";
|
2024-03-22 16:09:41 +00:00
|
|
|
hash = "sha256-dUBuuFl6PVTsPnrH9OU3N/GwgTC2/QtH6yKtv3QgBsA=";
|
2023-06-28 09:31:15 +00:00
|
|
|
};
|
|
|
|
|
2024-03-22 16:09:41 +00:00
|
|
|
cargoHash = "sha256-X5lYplBej+ZBLnNoHQTGu63pwouGfbVtSH4bgdoxqUo=";
|
2023-06-28 09:31:15 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2023-11-29 08:50:48 +00:00
|
|
|
# tests run in CI on the source repo
|
2023-06-28 09:31:15 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Backup a folder to AWS S3, once or periodically";
|
|
|
|
homepage = "https://github.com/beeb/awsbck";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = with maintainers; [ beeb ];
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "awsbck";
|
2023-06-28 09:31:15 +00:00
|
|
|
};
|
|
|
|
}
|