Silvan Mosberger 1d4656225d
lib/types: Allow types to emit a deprecation warning
Previously the only way to deprecate a type was using

  theType = lib.warn "deprecated" (mkOptionType ...)

This caused the warning to be emitted when the type was evaluated, but
the error didn't include which option actually used that type.

With this commit, types can specify a deprecationMessage, which when
non-null, is printed along with the option that uses the type
2020-09-07 13:17:14 +02:00
..
2020-08-24 18:50:20 +02:00
2020-06-18 10:16:57 +02:00
2017-09-16 21:36:43 -04:00
2017-09-16 21:36:43 -04:00
2019-04-17 15:55:57 +01:00
2020-05-08 08:31:27 -04:00
2018-11-22 08:59:48 +00:00
2020-06-04 13:43:10 +02:00
2019-09-26 17:42:42 +02:00