Files
nixpkgs/pkgs/games/cutechess/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1003 B
Nix

{
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
wrapQtAppsHook,
qtbase,
lib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cutechess";
version = "1.4.0";
src = fetchFromGitHub {
owner = "cutechess";
repo = "cutechess";
rev = "v${finalAttrs.version}";
hash = "sha256-vhS3Eenxcq7D8E5WVON5C5hCTytcEVbYUeuCkfB0apA=";
};
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 = [ ];
platforms = with platforms; (linux ++ windows);
mainProgram = "cutechess";
};
})