summaryrefslogtreecommitdiffstats
path: root/lib/types.nix
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-09-04 13:56:18 +0200
committerSilvan Mosberger <contact@infinisil.com>2020-09-07 13:17:19 +0200
commita582f6adde8f4345582c80fc3ccfe0de3aa89480 (patch)
tree29ac923f4113644b35d57516e4777bec9dbd1957 /lib/types.nix
parent3b7aca47e0d2523da3158a6522e768a461b08e9f (diff)
lib/types: Set deprecationMessage for types.optionSet
Diffstat (limited to 'lib/types.nix')
-rw-r--r--lib/types.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix
index a8f744685f9b..d3469450963d 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -529,8 +529,9 @@ rec {
# declarations from the ‘options’ attribute of containing option
# declaration.
optionSet = mkOptionType {
- name = builtins.trace "types.optionSet is deprecated; use types.submodule instead" "optionSet";
+ name = "optionSet";
description = "option set";
+ deprecationMessage = "Use `types.submodule' instead";
};
# Augment the given type with an additional type check function.
addCheck = elemType: check: elemType // { check = x: elemType.check x && check x; };