about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorConnor Baker <connor.baker@tweag.io>2023-07-25 14:18:14 -0400
committerGitHub <noreply@github.com>2023-07-25 14:18:14 -0400
commit495875182e3e47056b11a4db2fc035b2d5c74b51 (patch)
tree96ec76cd2cd0c0d7fe9d9e9149a19e4be2b21d8f /doc
parent62c111f29647a46829c576c162341814d18e9af5 (diff)
parent471dbe9bcfb844fb045f5591c35967f15e161657 (diff)
downloadnixlib-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.md7
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.