@@ -0,0 +1,32 @@
1+{ lib, buildGoModule, fetchFromGitHub, makeWrapper, stockfish }:
2+
3+buildGoModule rec {
4+ pname = "uchess";
5+ version = "0.2.1";
6+
7+ subPackages = [ "cmd/uchess" ];
8+
9+ src = fetchFromGitHub {
10+ owner = "tmountain";
11+ repo = "uchess";
12+ rev = "v${version}";
13+ sha256 = "1njl3f41gshdpj431zkvpv2b7zmh4m2m5q6xsijb0c0058dk46mz";
14+ };
15+
16+ vendorSha256 = "0dkq240ch1z3gihn8yc5d723nnvfxirk2nhw12r1c2hj1ga088g3";
17+
18+ # package does not contain any tests as of v0.2.1
19+ doCheck = false;
20+
21+ buildInputs = [ makeWrapper ];
22+ postInstall = ''
23+ wrapProgram $out/bin/uchess --suffix PATH : ${stockfish}/bin
24+ '';
25+
26+ meta = with lib; {
27+ description = "Play chess against UCI engines in your terminal.";
28+ homepage = "https://tmountain.github.io/uchess/";
29+ maintainers = with maintainers; [ tmountain ];
30+ license = licenses.mit;
31+ };
32+}