Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pkgs/by-name/ex/exercism/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
buildGoModule,
installShellFiles,
fetchFromGitHub,
nix-update-script,
}:
Expand All @@ -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";
Expand Down
Loading