mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
6a117e2759
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`. |
||
---|---|---|
.. | ||
modules | ||
check-eval.nix | ||
maintainer-module.nix | ||
maintainers.nix | ||
misc.nix | ||
modules.sh | ||
release.nix | ||
sources.sh | ||
systems.nix | ||
teams.nix |