git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #113654 from tmountain/uchess

uchess: init at 0.2.1

commitf5d27ad946edc81640e529f7b05e7b7d1fbd231c authorSandro <sandro.jaeckel@gmail.com> dateFri 19 Feb 2021, 00:14 (6 years ago) parent54b9a94ecf7314
2 files changed+36
pkgs/games/uchess/default.nix+32 pkgs/top-level/all-packages.nix+4
pkgs/games/uchess/default.nixnew file+32
@@ -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+}
pkgs/top-level/all-packages.nix+4
@@ -27324,6 +27324,10 @@ in
2732427324
2732527325 typespeed = callPackage ../games/typespeed { };
2732627326
27327+ uchess = callPackage ../games/uchess {
27328+ buildGoModule = buildGo116Module;
27329+ };
27330+
2732727331 udig = callPackage ../applications/gis/udig { };
2732827332
2732927333 ufoai = callPackage ../games/ufoai { };