12 src = fetchFromGitHub {
16 hash = "sha256-KEfRsaBsMCKO66HW71gNzHzZkun1yo6a05YqAvafomM=";
19 vendorHash = "sha256-pdGsvwEppmcsWyXxkcDut0F2Ak1nO42Hnd36tnysE9w=";
21 nativeBuildInputs = [ installShellFiles ];
26 "-X=github.com/j178/leetgo/constants.Version=${version}"
29 subPackages = [ "." ];
32 installShellCompletion --cmd leetgo \
33 --bash <($out/bin/leetgo completion bash) \
34 --fish <($out/bin/leetgo completion fish) \
35 --zsh <($out/bin/leetgo completion zsh)
39 description = "A command-line tool for LeetCode";
40 homepage = "https://github.com/j178/leetgo";
41 changelog = "https://github.com/j178/leetgo/releases/tag/v${version}";
42 license = licenses.mit;
43 maintainers = with maintainers; [ Ligthiago ];
44 mainProgram = "leetgo";