blob: a0f2d552d4b2b22090042948d2ccd623bb7504d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
stdenv,
fetchFromGitHub,
lowdown-unsandboxed,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fastchess";
version = "1.8.2-alpha";
src = fetchFromGitHub {
owner = "Disservin";
repo = "fastchess";
tag = "v${finalAttrs.version}";
hash = "sha256-jeD29xc7xcNapvHKWw4deTCxyCNdpcnBY4/BGe3S8Zw=";
};
nativeBuildInputs = [
lowdown-unsandboxed
];
enableParallelBuilding = true;
postPatch = ''
substituteInPlace app/Makefile \
--replace "-march=native" ""
'';
makeFlags = [
"PREFIX=${placeholder "out"}"
"CXX=${stdenv.cc.targetPrefix}c++"
];
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Versatile command-line tool designed for running chess engine tournaments";
homepage = "https://github.com/Disservin/fastchess";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Zirconium419122 ];
platforms = with lib.platforms; unix ++ windows;
mainProgram = "fastchess";
};
})
|