nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 36 lines 1.1 kB view raw
1{ lib, ... }: 2let 3 inherit (lib) options types; 4 Package = import ./package.nix { inherit lib; }; 5in 6options.mkOption { 7 description = "Release is an attribute set which includes a mapping from platform to package"; 8 example = (import ./manifest.nix { inherit lib; }).cuda_cccl; 9 type = types.submodule { 10 # Allow any attribute name as these will be the platform names 11 freeformType = types.attrsOf Package.type; 12 options = { 13 name = options.mkOption { 14 description = "Full name of the package"; 15 example = "CXX Core Compute Libraries"; 16 type = types.str; 17 }; 18 license = options.mkOption { 19 description = "License of the package"; 20 example = "CUDA Toolkit"; 21 type = types.str; 22 }; 23 license_path = options.mkOption { 24 description = "Path to the license of the package"; 25 example = "cuda_cccl/LICENSE.txt"; 26 default = null; 27 type = types.nullOr types.str; 28 }; 29 version = options.mkOption { 30 description = "Version of the package"; 31 example = "11.5.62"; 32 type = types.str; 33 }; 34 }; 35 }; 36}