Skip to content

Commit

Permalink
katago: 1.4.4 -> 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
OmnipotentEntity committed Aug 3, 2020
1 parent 4f4e047 commit 7652a8e
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions pkgs/games/katago/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
, useTcmalloc ? true}:

assert cudaSupport -> (
libGL_driver != null &&
libGL_driver != null &&
cudatoolkit != null &&
cudnn != null);

Expand All @@ -29,36 +29,21 @@ assert useTcmalloc -> (
gperftools != null);

let
env = if cudaSupport
env = if cudaSupport
then gcc8Stdenv
else stdenv;

in env.mkDerivation rec {
pname = "katago";
version = "1.4.4";
version = "1.5.0";

src = fetchFromGitHub {
owner = "lightvector";
repo = "katago";
rev = "v${version}";
sha256 = "14xs2bm8sky9cdsjdahjqs82q6blzcw05f5d9r1h171dm1hcx566";
rev = "${version}";
sha256 = "0ajdjdmlzwh7zwk5v0k9zzjawgkf7w30pzqp5bhcsdqz4svvyll2";
};

# To workaround CMake 3.17.0's new buggy behavior wrt CUDA Compiler testing
# See the following tracking issues:
# KataGo:
# - Issue #225: https://github.com/lightvector/KataGo/issues/225
# - PR #227: https://github.com/lightvector/KataGo/pull/227
# CMake:
# - Issue #20708: https://gitlab.kitware.com/cmake/cmake/-/issues/20708
patches = [
(fetchpatch {
name = "227.patch";
url = "https://patch-diff.githubusercontent.com/raw/lightvector/KataGo/pull/227.patch";
sha256 = "03f1vmdjhb79mpj95sijcwla8acy32clrjgrn4xqw5h90zdgj511";
})
];

nativeBuildInputs = [
cmake
makeWrapper
Expand Down

0 comments on commit 7652a8e

Please sign in to comment.