2021-02-18 22:41:13 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, stockfish }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "uchess";
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/uchess" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tmountain";
|
|
|
|
repo = "uchess";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1njl3f41gshdpj431zkvpv2b7zmh4m2m5q6xsijb0c0058dk46mz";
|
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-4yEE1AsSChayCBxaMXPsbls7xGmFeWRhfOMHyAAReDY=";
|
2021-02-18 22:41:13 +00:00
|
|
|
|
|
|
|
# package does not contain any tests as of v0.2.1
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-07-12 19:22:27 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2021-02-18 22:41:13 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/uchess --suffix PATH : ${stockfish}/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-12 16:07:33 +00:00
|
|
|
description = "Play chess against UCI engines in your terminal";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "uchess";
|
2021-02-18 22:41:13 +00:00
|
|
|
homepage = "https://tmountain.github.io/uchess/";
|
|
|
|
maintainers = with maintainers; [ tmountain ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|