exercism: install shell completions (#369128)

This commit is contained in:
Arne Keller
2024-12-29 22:04:38 +01:00
committed by GitHub
+10
View File
@@ -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";