config.cudaSupport: init option
This commit is contained in:
@@ -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 = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user