2021-09-22 15:38:15 +00:00
|
|
|
{ lib, fetchFromGitHub, installShellFiles, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "autorestic";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.8.2";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cupcakearmy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-g7P/q29LMZEibEP6Pmve2WwuxdmSpdqQpwG6/RPDMAM=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-1ya1h/v5uEVoZpPVugxXQC3FCH5GKPhcHIDm8rSY9OU=";
|
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
|
|
|
};
|
|
|
|
}
|