diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index bae640db6370..97e7c4ffed62 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1943,6 +1943,12 @@ github = "beardhatcode"; githubId = 662538; }; + beeb = { + name = "Valentin Bersier"; + email = "hi@beeb.li"; + github = "beeb"; + githubId = 703631; + }; beezow = { name = "beezow"; email = "zbeezow@gmail.com"; 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 893605c0bfcc..a28636d5c01a 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 { };