diff options
author | Connor Baker <connor.baker@tweag.io> | 2023-07-25 14:18:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-25 14:18:14 -0400 |
commit | 495875182e3e47056b11a4db2fc035b2d5c74b51 (patch) | |
tree | 96ec76cd2cd0c0d7fe9d9e9149a19e4be2b21d8f /doc | |
parent | 62c111f29647a46829c576c162341814d18e9af5 (diff) | |
parent | 471dbe9bcfb844fb045f5591c35967f15e161657 (diff) | |
download | nixlib-495875182e3e47056b11a4db2fc035b2d5c74b51.tar nixlib-495875182e3e47056b11a4db2fc035b2d5c74b51.tar.gz nixlib-495875182e3e47056b11a4db2fc035b2d5c74b51.tar.bz2 nixlib-495875182e3e47056b11a4db2fc035b2d5c74b51.tar.lz nixlib-495875182e3e47056b11a4db2fc035b2d5c74b51.tar.xz nixlib-495875182e3e47056b11a4db2fc035b2d5c74b51.tar.zst nixlib-495875182e3e47056b11a4db2fc035b2d5c74b51.zip |
Merge pull request #224068 from SomeoneSerge/respect-config-cudaSupport
Respect global config.cudaSupport
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/cuda.section.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/languages-frameworks/cuda.section.md b/doc/languages-frameworks/cuda.section.md index 6b19e02e74e9..b7f1f19546a7 100644 --- a/doc/languages-frameworks/cuda.section.md +++ b/doc/languages-frameworks/cuda.section.md @@ -12,8 +12,11 @@ compatible are available as well. For example, there can be a To use one or more CUDA packages in an expression, give the expression a `cudaPackages` parameter, and in case CUDA is optional ```nix -cudaSupport ? false -cudaPackages ? {} +{ config +, cudaSupport ? config.cudaSupport +, cudaPackages ? { } +, ... +}: ``` When using `callPackage`, you can choose to pass in a different variant, e.g. |