13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
18 owner = "LeelaChessZero";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-8watDDxSyZ5khYqpXPyjQso2MkOzfI6o2nt0vkuiEUI=";
22 fetchSubmodules = true;
28 patchShebangs --build scripts/*
54 # in version 31 this option will be required
55 ++ lib.optionals (lib.versionAtLeast version "0.31") [ "-Dnative_cuda=false" ];
58 enableParallelBuilding = true;
61 homepage = "https://lczero.org/";
62 description = "Open source neural network based chess engine";
64 Lc0 is a UCI-compliant chess engine designed to play chess via neural network, specifically those of the LeelaChessZero project.
66 maintainers = with lib.maintainers; [ _9glenda ];
67 platforms = lib.platforms.unix;
68 license = lib.licenses.gpl3Plus;
69 broken = stdenv.hostPlatform.isDarwin;