nixpkgs-suyu/pkgs/games/leela-zero/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
764 B
Nix
Raw Normal View History

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