2021-09-22 15:38:15 +00:00
|
|
|
{ lib, fetchFromGitHub, installShellFiles, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "autorestic";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.8.3";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cupcakearmy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-rladzcW6l5eR6ICj4kKd4e2R9vRIV/1enCzHLFdQDlk=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-riAjjIrG00vJweaFHc3ArhaAQb08v6cYUJsNys4Hwio=";
|
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
|
|
|
};
|
|
|
|
}
|