git.iko.soy/typeable/nixpkgs
on master help sign in
autorestic: init at 1.2.0
commitfd010f6ba6c46f29d0606d1abce268c92d639c94 authorrenesat <smol.ivan97@gmail.com> dateSat 18 Sep 2021, 04:26 (5 years ago) parent5cd2a1c
2 files changed+34
pkgs/tools/backup/autorestic/default.nix+32 pkgs/top-level/all-packages.nix+2
pkgs/tools/backup/autorestic/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ lib, fetchFromGitHub, installShellFiles, buildGoModule }:
2+
3+buildGoModule rec {
4+ pname = "autorestic";
5+ version = "1.2.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "cupcakearmy";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "yQgSJ0SQNWPMyrYn8rep+1b549HP8sOERh+kOiAK3+c=";
12+ };
13+
14+ vendorSha256 = "7648gAguqeqLKFS9xRcx20wpSLb+ykZ7rOqR5PKe71o=";
15+
16+ nativeBuildInputs = [ installShellFiles ];
17+
18+ postInstall = ''
19+ installShellCompletion --cmd autorestic \
20+ --bash <($out/bin/autorestic completion bash) \
21+ --fish <($out/bin/autorestic completion fish) \
22+ --zsh <($out/bin/autorestic completion zsh)
23+ '';
24+
25+ meta = with lib; {
26+ description = "High level CLI utility for restic";
27+ homepage = "https://github.com/cupcakearmy/autorestic";
28+ license = licenses.asl20;
29+ maintainers = with maintainers; [ renesat ];
30+ platforms = platforms.linux ++ platforms.darwin;
31+ };
32+}
pkgs/top-level/all-packages.nix+2
@@ -141,6 +141,8 @@ with pkgs;
141141 autoconf = autoconf269;
142142 };
143143
144+ autorestic = callPackage ../tools/backup/autorestic { };
145+
144146 autoPatchelfHook = makeSetupHook { name = "auto-patchelf-hook"; }
145147 ../build-support/setup-hooks/auto-patchelf.sh;
146148