mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 01:47:50 +00:00
doc: update #cuda to reflect the recommended config.cudaSupport style
This commit is contained in:
parent
bf9e6fe9b8
commit
a17baa5db4
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user