2023-06-28 09:31:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "awsbck";
|
2024-06-10 13:25:37 +00:00
|
|
|
version = "0.3.9";
|
2023-06-28 09:31:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beeb";
|
|
|
|
repo = "awsbck";
|
|
|
|
rev = "v${version}";
|
2024-06-10 13:25:37 +00:00
|
|
|
hash = "sha256-KHbAmx2CsRqatGt5zTvqZSq8fwcClRZkeMHucLAr8bY=";
|
2023-06-28 09:31:15 +00:00
|
|
|
};
|
|
|
|
|
2024-06-10 13:25:37 +00:00
|
|
|
cargoHash = "sha256-dMXaIFc0e6PMYiQrokQoUc1xAVCccE92WzM2fl7tOBQ=";
|
2023-06-28 09:31:15 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.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
|
|
|
};
|
|
|
|
}
|