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 lib.fake{Sri => Hash}: fix and rename 2020-05-11 23:11:12 +01:00
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 Merge pull request #84032 from teto/fix_kernel_merge 2020-05-22 13:32:22 +02:00
licenses.nix pythonPackages.databricks-connect: init at 7.1.0 2020-08-31 13:05:09 -07:00
lists.nix fix example for foldl 2020-05-08 08:31:27 -04:00
meta.nix
minver.nix Bump minver.nix to 2.2 2020-06-04 13:43:10 +02:00
modules.nix lib/types: Allow types to emit a deprecation warning 2020-09-07 13:17:14 +02:00
options.nix lib/options: fix showOption example 2020-04-14 20:38:31 +02:00
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