exercism: install shell completions (#369128)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
installShellFiles,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
@@ -22,8 +23,17 @@ buildGoModule rec {
|
||||
|
||||
subPackages = [ "./exercism" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd exercism \
|
||||
--bash shell/exercism_completion.bash \
|
||||
--fish shell/exercism.fish \
|
||||
--zsh shell/exercism_completion.zsh
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = "Go based command line tool for exercism.io";
|
||||
|
||||
Reference in New Issue
Block a user