mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
cutechess: init at 1.3.1
This commit is contained in:
parent
5eefad900f
commit
7d87be6c71
45
pkgs/games/cutechess/default.nix
Normal file
45
pkgs/games/cutechess/default.nix
Normal file
@ -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";
|
||||
};
|
||||
})
|
@ -37453,6 +37453,8 @@ with pkgs;
|
||||
curseofwar = callPackage ../games/curseofwar { SDL = null; };
|
||||
curseofwar-sdl = callPackage ../games/curseofwar { ncurses = null; };
|
||||
|
||||
cutechess = qt5.callPackage ../games/cutechess { };
|
||||
|
||||
cutemaze = qt6Packages.callPackage ../games/cutemaze { };
|
||||
|
||||
cuyo = callPackage ../games/cuyo { };
|
||||
|
Loading…
Reference in New Issue
Block a user