mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
34 lines
866 B
Nix
34 lines
866 B
Nix
{ 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";
|
|
};
|
|
|
|
vendorHash = "sha256-4yEE1AsSChayCBxaMXPsbls7xGmFeWRhfOMHyAAReDY=";
|
|
|
|
# package does not contain any tests as of v0.2.1
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
postInstall = ''
|
|
wrapProgram $out/bin/uchess --suffix PATH : ${stockfish}/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Play chess against UCI engines in your terminal";
|
|
mainProgram = "uchess";
|
|
homepage = "https://tmountain.github.io/uchess/";
|
|
maintainers = with maintainers; [ tmountain ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|