git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #138350 from renesat/submit/autorestic

autorestic: init at 1.2.0

commit334c2ce6db523780ec42b292f697eebfdbcdba6e authorfigsoda <figsoda@pm.me> dateSat 18 Sep 2021, 09:25 (5 years ago) parentaf5ba65fd010f6
3 files changed+40
maintainers/maintainer-list.nix+6 pkgs/tools/backup/autorestic/default.nix+32 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -9182,6 +9182,12 @@
91829182 githubId = 546296;
91839183 name = "Eric Ren";
91849184 };
9185+ renesat = {
9186+ name = "Ivan Smolyakov";
9187+ email = "smol.ivan97@gmail.com";
9188+ github = "renesat";
9189+ githubId = 11363539;
9190+ };
91859191 renzo = {
91869192 email = "renzocarbonara@gmail.com";
91879193 github = "k0001";
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