Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 46 lines 1.0 kB view raw
1{ 2 stdenv, 3 fetchFromGitHub, 4 cmake, 5 pkg-config, 6 wrapQtAppsHook, 7 qtbase, 8 lib, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "cutechess"; 13 version = "1.4.0"; 14 15 src = fetchFromGitHub { 16 owner = "cutechess"; 17 repo = "cutechess"; 18 rev = "v${finalAttrs.version}"; 19 hash = "sha256-vhS3Eenxcq7D8E5WVON5C5hCTytcEVbYUeuCkfB0apA="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 pkg-config 25 wrapQtAppsHook 26 ]; 27 buildInputs = [ 28 qtbase 29 ]; 30 31 postInstall = '' 32 install -Dm555 cutechess{,-cli} -t $out/bin/ 33 install -Dm444 libcutechess.a -t $out/lib/ 34 install -Dm444 $src/docs/cutechess-cli.6 -t $out/share/man/man6/ 35 install -Dm444 $src/docs/cutechess-engines.json.5 -t $out/share/man/man5/ 36 ''; 37 38 meta = with lib; { 39 description = "GUI, CLI, and library for playing chess"; 40 homepage = "https://cutechess.com/"; 41 license = licenses.gpl3Plus; 42 maintainers = with maintainers; [ ]; 43 platforms = with platforms; (linux ++ windows); 44 mainProgram = "cutechess"; 45 }; 46})