11 src = fetchFromGitHub {
15 hash = "sha256-K/PaQakX0ZLu2Uh906kZ4p8J+GV7ewAeSVFMMQiKYBA=";
18 vendorHash = "sha256-4QSfZzYLjPdGKLySP57fK9n6WXdCYzb3sWibfP85jLE=";
20 nativeBuildInputs = [ installShellFiles ];
25 "-X=github.com/j178/leetgo/constants.Version=${version}"
28 subPackages = [ "." ];
31 installShellCompletion --cmd leetgo \
32 --bash <($out/bin/leetgo completion bash) \
33 --fish <($out/bin/leetgo completion fish) \
34 --zsh <($out/bin/leetgo completion zsh)
38 description = "A command-line tool for LeetCode";
39 homepage = "https://github.com/j178/leetgo";
40 changelog = "https://github.com/j178/leetgo/releases/tag/v${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ Ligthiago ];
43 mainProgram = "leetgo";