diff options
author | Someone Serge <sergei.kozlukov@aalto.fi> | 2023-07-20 18:08:19 +0300 |
---|---|---|
committer | Someone Serge <sergei.kozlukov@aalto.fi> | 2023-07-20 18:08:19 +0300 |
commit | 471dbe9bcfb844fb045f5591c35967f15e161657 (patch) | |
tree | 91a50a71a98c4aed259de0a2548b21ae3891b55d /pkgs/games | |
parent | 133993211b39907a09986b338e9394908de223f2 (diff) |
treewide: consume config.cudaSupport as required
Eliminate uses of `config.cudaSupport or false` and alike, since the option is now declared in config.nix with a default value fd .nix -t f -x sed 's/config\.cudaSupport or false, cudaPackages [?] [{][}]/config.cudaSupport, cudaPackages ? { }/' '{}' -i fd .nix -t f -x sed 's/config\.cudaSupport or false/config.cudaSupport/' '{}' -i fd .nix -t f -x sed 's/cudaSupport = pkgs.config.cudaSupport/inherit (pkgs.config) cudaSupport/' '{}' -i fd .nix -t f -x sed 's/cudaSupport = config.cudaSupport/inherit (config) cudaSupport/' '{}' -i
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/katago/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/games/katago/default.nix b/pkgs/games/katago/default.nix index 3d0b5a141c3c3..0ca0deb518ffc 100644 --- a/pkgs/games/katago/default.nix +++ b/pkgs/games/katago/default.nix @@ -15,7 +15,7 @@ , openssl , writeShellScriptBin , enableAVX2 ? stdenv.hostPlatform.avx2Support -, backend ? if (config.cudaSupport or false) then "cuda" else "opencl" +, backend ? if config.cudaSupport then "cuda" else "opencl" , enableBigBoards ? false , enableContrib ? false , enableTcmalloc ? true |