forked from lix-project/lix
Lunaphied
e85582ed4f
For a long time `nix repl` has supported displaying documentation set on
builtins, however, it has long been convention to use Markdown comments
on Nix functions themselves for documentation. This exposes that
information to `nix repl` users in a nice and formatted way.
NixOS/rfcs#145 doc-comments are primarily what this feature is intended
to consume, however, support for lambda documentation in the repl is
experimental. We do our best effort to support the RFC here.
These changes are based on [the nix-doc library](https://github.com/lf-/nix-doc) and
are licensed under the terms described in the relevant source files.
Change-Id: Ic6fe947d39a22540705d890737e336c4720b0a22
12 lines
181 B
Nix
12 lines
181 B
Nix
{
|
|
rustPlatform,
|
|
lib
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
name = "nix-doc";
|
|
|
|
cargoHash = "sha256-HXL235loBJnRje7KaMCCCTighv6WNYRrZ/jgkAQbEY0=";
|
|
src = lib.cleanSource ./.;
|
|
}
|