From 9daf938d371f2b8ab1bd849b6214c02413e4d7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 4 Jan 2021 10:59:14 +0100 Subject: [PATCH] katago: Use stdenv.hostPlatform.avx2Support --- pkgs/games/katago/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/games/katago/default.nix b/pkgs/games/katago/default.nix index 0f9e4b8d67a8..a9ac9e8ac598 100644 --- a/pkgs/games/katago/default.nix +++ b/pkgs/games/katago/default.nix @@ -14,11 +14,12 @@ , ocl-icd ? null , gperftools ? null , eigen ? null -, enableAVX2 ? false +, enableAVX2 ? stdenv.hostPlatform.avx2Support , enableBigBoards ? false , enableCuda ? false , enableGPU ? true -, enableTcmalloc ? true}: +, enableTcmalloc ? true +}: assert !enableGPU -> ( eigen != null && @@ -103,8 +104,6 @@ in env.mkDerivation rec { --prefix LD_LIBRARY_PATH : "/run/opengl-driver/lib" ''; - enableParallelBuilding = true; - meta = with stdenv.lib; { description = "Go engine modeled after AlphaGo Zero"; homepage = "https://github.com/lightvector/katago";