nixpkgs/lib
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
..
systems Merge pull request #61019 from volth/gcc.arch-amd 2020-09-01 22:31:16 -04:00
tests Don't set $NIX_DB_DIR 2020-08-24 18:50:20 +02:00
asserts.nix
attrsets.nix lib/attrsets: add getMan function 2020-06-18 10:16:57 +02:00
cli.nix
customisation.nix
debug.nix
default.nix lib: toHex -> toHexString & toBase -> toBaseDigits 2020-07-20 13:14:19 +02:00
deprecated.nix
fetchers.nix
filesystem.nix
fixed-points.nix
generators.nix lib/generators: Extend mkValueStringDefault with float support 2020-07-29 18:06:34 +02:00
kernel.nix
licenses.nix pythonPackages.databricks-connect: init at 7.1.0 2020-08-31 13:05:09 -07:00
lists.nix
meta.nix
minver.nix
modules.nix lib/types: Allow types to emit a deprecation warning 2020-09-07 13:17:14 +02:00
options.nix
sources.nix commitIdFromGitRepo: fix stackoverflow if many branches are used. 2020-07-17 10:44:08 +01:00
strings-with-deps.nix
strings.nix lib/strings: deprecate readPathsFromFile 2020-09-03 19:15:10 +02:00
trivial.nix lib: toHex -> toHexString & toBase -> toBaseDigits 2020-07-20 13:14:19 +02:00
types.nix lib/types: Allow types to emit a deprecation warning 2020-09-07 13:17:14 +02:00
versions.nix
zip-int-bits.nix