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 lib.strings: Add function to convert character to number 2022-10-20 18:58:44 +02:00
asserts.nix
attrsets.nix lib/attrsets: add concatMapAttrs 2022-11-17 10:41:53 -05:00
cli.nix
customisation.nix splice.nix: start deprecating nativeDrv and crossDrv 2022-11-19 00:04:54 +02:00
debug.nix
default.nix lib/default.nix: include mesonOption-related functions 2022-12-06 23:09:36 -03:00
deprecated.nix lib.closePropagation: Remove the quadratic behavior in lib.closePropagation 2022-10-07 18:03:42 +02:00
derivations.nix
fetchers.nix
filesystem.nix lib: Automatically generate lib.filesytem docs 2022-10-26 15:10:47 +02:00
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 licenses: add bsd2WithViews 2022-11-16 12:01:53 +08:00
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 lib/sources: make commitIdFromGitRepoOrError internal and use # for comments 2022-11-18 17:17:51 +02:00
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 lib/types: add descriptionClass for path 2022-11-08 13:31:29 +01:00
versions.nix
zip-int-bits.nix