diff options
Diffstat (limited to 'nixpkgs/lib/options.nix')
-rw-r--r-- | nixpkgs/lib/options.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixpkgs/lib/options.nix b/nixpkgs/lib/options.nix index 627aac24d2fb..8d0801775c46 100644 --- a/nixpkgs/lib/options.nix +++ b/nixpkgs/lib/options.nix @@ -79,8 +79,6 @@ rec { visible ? null, # Whether the option can be set only once readOnly ? null, - # Deprecated, used by types.optionSet. - options ? null } @ attrs: attrs // { _type = "option"; }; @@ -231,7 +229,7 @@ rec { then true else opt.visible or true; readOnly = opt.readOnly or false; - type = opt.type.description or null; + type = opt.type.description or "unspecified"; } // optionalAttrs (opt ? example) { example = scrubOptionValue opt.example; } // optionalAttrs (opt ? default) { default = scrubOptionValue opt.default; } |