summary refs log tree commit diff
path: root/doc/languages-frameworks/cuda.section.md
diff options
context:
space:
mode:
authorSomeone Serge <sergei.kozlukov@aalto.fi>2023-03-31 16:16:02 +0300
committerSomeone Serge <sergei.kozlukov@aalto.fi>2023-07-20 17:27:07 +0300
commita17baa5db4f809809e4ae8cae66f2935cd37f2ab (patch)
treeaca983dcaa986cbb627aa9a38ac57dc655db5792 /doc/languages-frameworks/cuda.section.md
parentbf9e6fe9b852ea9185b9d495dc974491d4fbf355 (diff)
downloadnixpkgs-a17baa5db4f809809e4ae8cae66f2935cd37f2ab.tar
nixpkgs-a17baa5db4f809809e4ae8cae66f2935cd37f2ab.tar.gz
nixpkgs-a17baa5db4f809809e4ae8cae66f2935cd37f2ab.tar.bz2
nixpkgs-a17baa5db4f809809e4ae8cae66f2935cd37f2ab.tar.lz
nixpkgs-a17baa5db4f809809e4ae8cae66f2935cd37f2ab.tar.xz
nixpkgs-a17baa5db4f809809e4ae8cae66f2935cd37f2ab.tar.zst
nixpkgs-a17baa5db4f809809e4ae8cae66f2935cd37f2ab.zip
doc: update #cuda to reflect the recommended config.cudaSupport style
Diffstat (limited to 'doc/languages-frameworks/cuda.section.md')
-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 6b19e02e74e..b571ca25742 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 or false
+, cudaPackages ? { }
+, ...
+}:
 ```
 
 When using `callPackage`, you can choose to pass in a different variant, e.g.