nixpkgs/lib
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
..
systems Merge pull request #180964 from amjoseph-nixpkgs/pr/mkSkeletonFromList/simplify 2022-11-22 15:02:22 -05:00
tests nixos/doc: render option values using lib.generators.toPretty 2022-12-08 17:52:52 +01:00
ascii-table.nix
asserts.nix
attrsets.nix
cli.nix
customisation.nix
debug.nix
default.nix lib/default.nix: include mesonOption-related functions 2022-12-06 23:09:36 -03:00
deprecated.nix
derivations.nix
fetchers.nix
filesystem.nix
fixed-points.nix
flake.nix
generators.nix nixos/doc: render option values using lib.generators.toPretty 2022-12-08 17:52:52 +01:00
kernel.nix
licenses.nix
lists.nix
meta.nix
minver.nix
modules.nix Merge pull request #204103 from ncfavier/doc-mkOrder 2022-12-02 17:19:40 +01:00
options.nix nixos/doc: render option values using lib.generators.toPretty 2022-12-08 17:52:52 +01:00
source-types.nix
sources.nix
strings-with-deps.nix
strings.nix Merge pull request #204087 from ncfavier/splitString-simplify 2022-12-08 13:30:50 +01:00
trivial.nix Merge pull request #202370 from Artturin/revertpartof1 2022-11-22 19:49:35 +02:00
types.nix
versions.nix
zip-int-bits.nix