2021-09-22 15:38:15 +00:00
|
|
|
{ lib, fetchFromGitHub, installShellFiles, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "autorestic";
|
2023-03-08 16:32:21 +00:00
|
|
|
version = "1.7.7";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cupcakearmy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
sha256 = "sha256-drinKUJAlgY1PEP7NHOFfmvDVib1AFjT8hRktQgxJ4A=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
vendorHash = "sha256-K3+5DRXcx56sJ4XHikVtmoxmpJbBeAgPkN9KtHVgvYA=";
|
2021-09-22 15:38:15 +00: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 ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "autorestic";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
}
|