config.cudaSupport: init option
This commit is contained in:
parent
a17baa5db4
commit
133993211b
2 changed files with 7 additions and 1 deletions
|
@ -13,7 +13,7 @@ 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
|
To use one or more CUDA packages in an expression, give the expression a `cudaPackages` parameter, and in case CUDA is optional
|
||||||
```nix
|
```nix
|
||||||
{ config
|
{ config
|
||||||
, cudaSupport ? config.cudaSupport or false
|
, cudaSupport ? config.cudaSupport
|
||||||
, cudaPackages ? { }
|
, cudaPackages ? { }
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
|
@ -117,6 +117,12 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cudaSupport = mkMassRebuild {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
feature = "build packages with CUDA support by default";
|
||||||
|
};
|
||||||
|
|
||||||
showDerivationWarnings = mkOption {
|
showDerivationWarnings = mkOption {
|
||||||
type = types.listOf (types.enum [ "maintainerless" ]);
|
type = types.listOf (types.enum [ "maintainerless" ]);
|
||||||
default = [];
|
default = [];
|
||||||
|
|
Loading…
Reference in a new issue