depot/third_party/nixpkgs/pkgs/games/leela-zero/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

27 lines
738 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, boost
, opencl-headers, ocl-icd, qtbase , zlib }:
stdenv.mkDerivation rec {
pname = "leela-zero";
version = "0.17";
src = fetchFromGitHub {
owner = "gcp";
repo = "leela-zero";
rev = "v${version}";
sha256 = "1k04ld1ysabxb8ivci3ji5by9vb3yvnflkf2fscs1x0bp7d6j101";
fetchSubmodules = true;
};
buildInputs = [ boost opencl-headers ocl-icd qtbase zlib ];
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "Go engine modeled after AlphaGo Zero";
homepage = "https://github.com/gcp/leela-zero";
license = licenses.gpl3;
maintainers = [ maintainers.averelld maintainers.omnipotententity ];
platforms = platforms.linux;
};
}