2022-06-10 02:10:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, boost
|
|
|
|
, opencl-headers
|
|
|
|
, ocl-icd
|
|
|
|
, qtbase
|
|
|
|
, zlib
|
|
|
|
}:
|
2018-12-05 11:22:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "leela-zero";
|
2019-04-05 12:19:56 +00:00
|
|
|
version = "0.17";
|
2018-12-05 11:22:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gcp";
|
|
|
|
repo = "leela-zero";
|
|
|
|
rev = "v${version}";
|
2022-06-10 02:10:09 +00:00
|
|
|
sha256 = "sha256-AQRp2rkL9KCZdsJN6uz2Y+3kV4lyRLYjWn0p7UOjBMw=";
|
2018-12-05 11:22:41 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ boost opencl-headers ocl-icd qtbase zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-12-05 11:22:41 +00:00
|
|
|
description = "Go engine modeled after AlphaGo Zero";
|
2022-06-10 02:10:09 +00:00
|
|
|
homepage = "https://github.com/gcp/leela-zero";
|
|
|
|
license = licenses.gpl3Plus;
|
2019-04-05 12:19:56 +00:00
|
|
|
maintainers = [ maintainers.averelld maintainers.omnipotententity ];
|
2022-06-10 02:10:09 +00:00
|
|
|
platforms = platforms.linux;
|
2018-12-05 11:22:41 +00:00
|
|
|
};
|
|
|
|
}
|