13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
18 owner = "LeelaChessZero";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-VbWNc41CgsS0I64QHNp+k9cM/IEai9b3SyHorfmwvsE=";
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;