From 8d424b681ce221a726f713a42e73728e38d88cf9 Mon Sep 17 00:00:00 2001 From: beeb Date: Wed, 28 Jun 2023 11:31:15 +0200 Subject: [PATCH] awsbck: init at 0.3.2 --- pkgs/tools/backup/awsbck/default.nix | 34 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/tools/backup/awsbck/default.nix diff --git a/pkgs/tools/backup/awsbck/default.nix b/pkgs/tools/backup/awsbck/default.nix new file mode 100644 index 000000000000..6d4bacb7902f --- /dev/null +++ b/pkgs/tools/backup/awsbck/default.nix @@ -0,0 +1,34 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, installShellFiles +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "awsbck"; + version = "0.3.2"; + + src = fetchFromGitHub { + owner = "beeb"; + repo = "awsbck"; + rev = "v${version}"; + hash = "sha256-4iFPHMCWKOfwqdjCLQqWHSs5SwXi+K2sQu75ecsolSs="; + }; + + nativeBuildInputs = [ installShellFiles ]; + + buildInputs = lib.optionals stdenv.isDarwin [ Security ]; + + cargoSha256 = "sha256-GH7ybr9ncbcvtyYCmYrG1aSA3lc+qmqivAbNVVqpMPQ="; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5e00f4c4ff98..c61beb04f460 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1551,6 +1551,10 @@ with pkgs; asleap = callPackage ../tools/networking/asleap { }; + awsbck = callPackage ../tools/backup/awsbck { + inherit (darwin.apple_sdk.frameworks) Security; + }; + balena-cli = callPackage ../tools/admin/balena-cli { }; basez = callPackage ../tools/misc/basez { };