Merge pull request #138350 from renesat/submit/autorestic
autorestic: init at 1.2.0
This commit is contained in:
commit
334c2ce6db
3 changed files with 40 additions and 0 deletions
|
@ -9182,6 +9182,12 @@
|
|||
githubId = 546296;
|
||||
name = "Eric Ren";
|
||||
};
|
||||
renesat = {
|
||||
name = "Ivan Smolyakov";
|
||||
email = "smol.ivan97@gmail.com";
|
||||
github = "renesat";
|
||||
githubId = 11363539;
|
||||
};
|
||||
renzo = {
|
||||
email = "renzocarbonara@gmail.com";
|
||||
github = "k0001";
|
||||
|
|
32
pkgs/tools/backup/autorestic/default.nix
Normal file
32
pkgs/tools/backup/autorestic/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -141,6 +141,8 @@ with pkgs;
|
|||
autoconf = autoconf269;
|
||||
};
|
||||
|
||||
autorestic = callPackage ../tools/backup/autorestic { };
|
||||
|
||||
autoPatchelfHook = makeSetupHook { name = "auto-patchelf-hook"; }
|
||||
../build-support/setup-hooks/auto-patchelf.sh;
|
||||
|
||||
|
|
Loading…
Reference in a new issue