{ lib, buildGoModule, installShellFiles, fetchFromGitHub, nix-update-script, }: buildGoModule rec { pname = "exercism"; version = "3.5.8"; src = fetchFromGitHub { owner = "exercism"; repo = "cli"; tag = "v${version}"; hash = "sha256-vYbOagP3RwqD2+x0Mvve66Xm88jeRVzHU7nsN432j6k="; }; vendorHash = "sha256-xY3C3emqtPIKyxIN9aEkrLXhTxWNmo0EJXNZVtbtIvs="; doCheck = false; 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 = { inherit (src.meta) homepage; description = "Go based command line tool for exercism.io"; license = lib.licenses.mit; maintainers = [ lib.maintainers.rbasso lib.maintainers.nobbz ]; mainProgram = "exercism"; }; }