summary refs log tree commit diff
path: root/pkgs/tools/backup/autorestic
diff options
context:
space:
mode:
authorrenesat <smol.ivan97@gmail.com>2021-09-18 04:26:33 +0300
committerrenesat <smol.ivan97@gmail.com>2021-09-18 14:40:53 +0300
commitfd010f6ba6c46f29d0606d1abce268c92d639c94 (patch)
tree117e8d3a0fde0a00519d3b9d7f85a05e600092af /pkgs/tools/backup/autorestic
parent5cd2a1c1995f724405e1a5cbdc627cc6aa7185f2 (diff)
downloadnixpkgs-fd010f6ba6c46f29d0606d1abce268c92d639c94.tar
nixpkgs-fd010f6ba6c46f29d0606d1abce268c92d639c94.tar.gz
nixpkgs-fd010f6ba6c46f29d0606d1abce268c92d639c94.tar.bz2
nixpkgs-fd010f6ba6c46f29d0606d1abce268c92d639c94.tar.lz
nixpkgs-fd010f6ba6c46f29d0606d1abce268c92d639c94.tar.xz
nixpkgs-fd010f6ba6c46f29d0606d1abce268c92d639c94.tar.zst
nixpkgs-fd010f6ba6c46f29d0606d1abce268c92d639c94.zip
autorestic: init at 1.2.0
Diffstat (limited to 'pkgs/tools/backup/autorestic')
-rw-r--r--pkgs/tools/backup/autorestic/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/backup/autorestic/default.nix b/pkgs/tools/backup/autorestic/default.nix
new file mode 100644
index 00000000000..ab299db1c67
--- /dev/null
+++ b/pkgs/tools/backup/autorestic/default.nix
@@ -0,0 +1,32 @@
+{ lib, fetchFromGitHub, installShellFiles, buildGoModule }:
+
+buildGoModule rec {
+  pname = "autorestic";
+  version = "1.2.0";
+
+  src = fetchFromGitHub {
+    owner = "cupcakearmy";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "yQgSJ0SQNWPMyrYn8rep+1b549HP8sOERh+kOiAK3+c=";
+  };
+
+  vendorSha256 = "7648gAguqeqLKFS9xRcx20wpSLb+ykZ7rOqR5PKe71o=";
+
+  nativeBuildInputs = [ installShellFiles ];
+
+  postInstall = ''
+    installShellCompletion --cmd autorestic \
+         --bash <($out/bin/autorestic completion bash) \
+         --fish <($out/bin/autorestic completion fish) \
+         --zsh <($out/bin/autorestic completion zsh)
+  '';
+
+  meta = with lib; {
+    description = "High level CLI utility for restic";
+    homepage = "https://github.com/cupcakearmy/autorestic";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ renesat ];
+    platforms = platforms.linux ++ platforms.darwin;
+  };
+}