13 src = fetchFromGitHub {
17 hash = "sha256-RLbD9JK1yJn30WWg7KWDjJoj4WXIoy3Kb8t2F8rFPuk=";
20 vendorHash = "sha256-d9fPlv+ZAzQA42I61B5JEzfYpfJc9vWBcLYTX/s5dhs=";
29 "-X=main.Version=v${version}"
30 "-X=main.CommitSHA=${src.rev}"
34 installShellCompletion --cmd gambit \
35 --bash <($out/bin/gambit completion bash) \
36 --fish <($out/bin/gambit completion fish) \
37 --zsh <($out/bin/gambit completion zsh)
41 version = testers.testVersion {
42 package = gambit-chess;
43 version = "v${version}";
48 description = "Play chess in your terminal";
49 homepage = "https://github.com/maaslalani/gambit";
50 changelog = "https://github.com/maaslalani/gambit/releases/tag/${src.rev}";
51 license = licenses.mit;
52 maintainers = with maintainers; [ figsoda ];