mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
32 lines
908 B
Nix
32 lines
908 B
Nix
{ lib, fetchFromGitHub, installShellFiles, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "autorestic";
|
|
version = "1.7.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cupcakearmy";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-LhcHTXzTd2C9Nb60pZGc3Z1wlbs9RNUj8uW4r7vzIX0=";
|
|
};
|
|
|
|
vendorHash = "sha256-K3+5DRXcx56sJ4XHikVtmoxmpJbBeAgPkN9KtHVgvYA=";
|
|
|
|
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 ];
|
|
mainProgram = "autorestic";
|
|
};
|
|
}
|