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.

30 lines
764 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, boost
2018-12-05 12:22:41 +01:00
, opencl-headers, ocl-icd, qtbase , zlib }:
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}";
sha256 = "1k04ld1ysabxb8ivci3ji5by9vb3yvnflkf2fscs1x0bp7d6j101";
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";
homepage = "https://github.com/gcp/leela-zero";
2018-12-05 12:22:41 +01:00
license = licenses.gpl3;
maintainers = [ maintainers.averelld maintainers.omnipotententity ];
2018-12-05 12:22:41 +01:00
platforms = platforms.linux;
};
}