diff options
Diffstat (limited to 'pkgs/development/cuda-modules/modules/generic/manifests/redistrib/manifest.nix')
-rw-r--r-- | pkgs/development/cuda-modules/modules/generic/manifests/redistrib/manifest.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/cuda-modules/modules/generic/manifests/redistrib/manifest.nix b/pkgs/development/cuda-modules/modules/generic/manifests/redistrib/manifest.nix new file mode 100644 index 0000000000000..0cfa40241fdc0 --- /dev/null +++ b/pkgs/development/cuda-modules/modules/generic/manifests/redistrib/manifest.nix @@ -0,0 +1,33 @@ +{lib, ...}: +let + inherit (lib) options trivial types; + Release = import ./release.nix {inherit lib;}; +in +options.mkOption { + description = "A redistributable manifest is an attribute set which includes a mapping from package name to release"; + example = trivial.importJSON ../../../../cuda/manifests/redistrib_11.5.2.json; + type = types.submodule { + # Allow any attribute name as these will be the package names + freeformType = types.attrsOf Release.type; + options = { + release_date = options.mkOption { + description = "The release date of the manifest"; + type = types.nullOr types.str; + default = null; + example = "2023-08-29"; + }; + release_label = options.mkOption { + description = "The release label of the manifest"; + type = types.nullOr types.str; + default = null; + example = "12.2.2"; + }; + release_product = options.mkOption { + example = "cuda"; + description = "The release product of the manifest"; + type = types.nullOr types.str; + default = null; + }; + }; + }; +} |