lib/types: Set deprecationMessage for types.optionSet
This commit is contained in:
parent
3b7aca47e0
commit
a582f6adde
|
@ -529,8 +529,9 @@ rec {
|
||||||
# declarations from the ‘options’ attribute of containing option
|
# declarations from the ‘options’ attribute of containing option
|
||||||
# declaration.
|
# declaration.
|
||||||
optionSet = mkOptionType {
|
optionSet = mkOptionType {
|
||||||
name = builtins.trace "types.optionSet is deprecated; use types.submodule instead" "optionSet";
|
name = "optionSet";
|
||||||
description = "option set";
|
description = "option set";
|
||||||
|
deprecationMessage = "Use `types.submodule' instead";
|
||||||
};
|
};
|
||||||
# Augment the given type with an additional type check function.
|
# Augment the given type with an additional type check function.
|
||||||
addCheck = elemType: check: elemType // { check = x: elemType.check x && check x; };
|
addCheck = elemType: check: elemType // { check = x: elemType.check x && check x; };
|
||||||
|
|
Loading…
Reference in a new issue