2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost
|
2018-12-05 11:22:41 +00:00
|
|
|
, opencl-headers, ocl-icd, qtbase , zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "leela-zero-${version}";
|
2019-04-05 13:19:56 +01: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 13:19:56 +01:00
|
|
|
sha256 = "1k04ld1ysabxb8ivci3ji5by9vb3yvnflkf2fscs1x0bp7d6j101";
|
2018-12-05 11:22:41 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ boost opencl-headers ocl-icd qtbase zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Go engine modeled after AlphaGo Zero";
|
|
|
|
homepage = https://github.com/gcp/leela-zero;
|
|
|
|
license = licenses.gpl3;
|
2019-04-05 13:19:56 +01:00
|
|
|
maintainers = [ maintainers.averelld maintainers.omnipotententity ];
|
2018-12-05 11:22:41 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|