nixpkgs/lib/tests
Naïm Favier 6a117e2759 nixos/doc: render option values using lib.generators.toPretty
Render un`_type`d defaults and examples as `literalExpression`s using
`lib.generators.toPretty` so that consumers don't have to reinvent Nix
pretty-printing. `renderOptionValue` is kept internal for now intentionally.

Make `toPretty` print floats as valid Nix values (without a tilde).

Get rid of the now-obsolete `substSpecial` function.

Move towards disallowing evaluation of packages in the manual by
raising a warning on `pkgs.foo.{outPath,drvPath}`; later, this should
throw an error. Instead, module authors should use `literalExpression`
and `mkPackageOption`.
2022-12-08 17:52:52 +01:00
..
modules lib/modules: Add context to the "option does not exist" error 2022-12-02 11:06:53 +00:00
check-eval.nix
maintainer-module.nix maintainer lib test: extract maintainer module 2022-06-20 22:20:26 +02:00
maintainers.nix lib/tests/maintainers.nix: remove unused binding 2022-09-26 22:18:55 -04:00
misc.nix nixos/doc: render option values using lib.generators.toPretty 2022-12-08 17:52:52 +01:00
modules.sh lib/modules: Add context to the "option does not exist" error 2022-12-02 11:06:53 +00:00
release.nix maintainer teams: check them in lib tests 2022-06-20 22:20:26 +02:00
sources.sh lib/tests: Set hardening pragmas 2021-11-26 10:55:14 +13:00
systems.nix lib/systems: Support FreeBSD 2022-11-04 16:49:28 -04:00
teams.nix maintainer teams: check them in lib tests 2022-06-20 22:20:26 +02:00