From b47d83f793c3662764bc990da2d58ec59101188f Mon Sep 17 00:00:00 2001 From: Averell Dalton Date: Wed, 5 Dec 2018 12:22:41 +0100 Subject: [PATCH] leela-zero: init at 0.16 --- pkgs/games/leela-zero/default.nix | 29 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/games/leela-zero/default.nix diff --git a/pkgs/games/leela-zero/default.nix b/pkgs/games/leela-zero/default.nix new file mode 100644 index 000000000000..c1238b7b3bbb --- /dev/null +++ b/pkgs/games/leela-zero/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, fetchFromGitHub, cmake, boost, eigen +, opencl-headers, ocl-icd, qtbase , zlib }: + +stdenv.mkDerivation rec { + name = "leela-zero-${version}"; + version = "0.16"; + + src = fetchFromGitHub { + owner = "gcp"; + repo = "leela-zero"; + rev = "v${version}"; + sha256 = "1px7wqvlv414gklzgrmppp8wzc2mkskinm1p75j4snbqr8qpbn5s"; + 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; + maintainers = [ maintainers.averelld ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ec30ddd8ae77..f6fb7d2f2e95 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20523,6 +20523,8 @@ in kobodeluxe = callPackage ../games/kobodeluxe { }; + leela-zero = libsForQt5.callPackage ../games/leela-zero { }; + lgogdownloader = callPackage ../games/lgogdownloader { }; liberal-crime-squad = callPackage ../games/liberal-crime-squad { };