2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, boost
|
2018-12-05 11:22:41 +00:00
|
|
|
, opencl-headers, ocl-icd, qtbase , zlib }:
|
|
|
|
|
|
|
|
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}";
|
2019-04-05 12:19:56 +00:00
|
|
|
sha256 = "1k04ld1ysabxb8ivci3ji5by9vb3yvnflkf2fscs1x0bp7d6j101";
|
2018-12-05 11:22:41 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ boost opencl-headers ocl-icd qtbase zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/gcp/leela-zero";
|
2018-12-05 11:22:41 +00:00
|
|
|
license = licenses.gpl3;
|
2019-04-05 12:19:56 +00:00
|
|
|
maintainers = [ maintainers.averelld maintainers.omnipotententity ];
|
2018-12-05 11:22:41 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|