diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-08-19 03:27:42 -0400 |
---|---|---|
committer | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2023-08-19 04:05:58 -0400 |
commit | 7d87be6c71f0680f82fe51fa18b40b7a7eed0d21 (patch) | |
tree | 60283cb6efc88e8abdc27cce16eef209f4a8e7b5 /pkgs/games/cutechess | |
parent | 5eefad900f332c0b87673b42b1db808ef8dd2fbd (diff) |
cutechess: init at 1.3.1
Diffstat (limited to 'pkgs/games/cutechess')
-rw-r--r-- | pkgs/games/cutechess/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/games/cutechess/default.nix b/pkgs/games/cutechess/default.nix new file mode 100644 index 0000000000000..5e374afa1bca5 --- /dev/null +++ b/pkgs/games/cutechess/default.nix @@ -0,0 +1,45 @@ +{ stdenv +, fetchFromGitHub +, cmake +, pkg-config +, wrapQtAppsHook +, qtbase +, lib +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "cutechess"; + version = "1.3.1"; + + src = fetchFromGitHub { + owner = "cutechess"; + repo = "cutechess"; + rev = "v${finalAttrs.version}"; + hash = "sha256-P44Twbw2MGz+oTzPwMFCe73zPxAex6uYjSTtaUypfHw="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + wrapQtAppsHook + ]; + buildInputs = [ + qtbase + ]; + + postInstall = '' + install -Dm555 cutechess{,-cli} -t $out/bin/ + install -Dm444 libcutechess.a -t $out/lib/ + install -Dm444 $src/docs/cutechess-cli.6 -t $out/share/man/man6/ + install -Dm444 $src/docs/cutechess-engines.json.5 -t $out/share/man/man5/ + ''; + + meta = with lib; { + description = "GUI, CLI, and library for playing chess"; + homepage = "https://cutechess.com/"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ eclairevoyant ]; + platforms = with platforms; (linux ++ windows); + mainProgram = "cutechess"; + }; +}) |