3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/autorestic/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
930 B
Nix
Raw Normal View History

2021-09-18 02:26:33 +01:00
{ lib, fetchFromGitHub, installShellFiles, buildGoModule }:
buildGoModule rec {
pname = "autorestic";
2022-03-12 01:48:41 +00:00
version = "1.5.6";
2021-09-18 02:26:33 +01:00
src = fetchFromGitHub {
owner = "cupcakearmy";
repo = pname;
rev = "v${version}";
2022-03-12 01:48:41 +00:00
sha256 = "sha256-NhKAxybPLBR1Kaw2d4xI8WKS4cG0yAMHbUBDWgr5T0A=";
2021-09-18 02:26:33 +01:00
};
2022-02-20 07:53:12 +00:00
vendorSha256 = "sha256-WzmgV0wUsGfMVeho6M8wXJKD9adaAKRYmaJYaAcXwFc=";
2021-09-18 02:26:33 +01:00
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;
};
}