aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/meson.build
diff options
context:
space:
mode:
authorLunaphied <lunaphied@lunaphied.me>2024-03-17 18:01:05 -0600
committerLunaphied <lunaphied@lunaphied.me>2024-04-03 13:47:22 -0600
commit7a1054fa5f223126833718fc3f332579dba5f0f7 (patch)
tree790daae10628ec42436d79c943dcbcd8d7168fd6 /src/libcmd/meson.build
parent56c7dfd65290dea957de6fad4e2df26f1630e407 (diff)
repl: improve `:doc` builtin repl command to support lambdas.
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
Diffstat (limited to 'src/libcmd/meson.build')
-rw-r--r--src/libcmd/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcmd/meson.build b/src/libcmd/meson.build
index 6ef293c8f..167cb0f06 100644
--- a/src/libcmd/meson.build
+++ b/src/libcmd/meson.build
@@ -45,6 +45,7 @@ libcmd = library(
editline,
lowdown,
nlohmann_json,
+ nix_doc
],
install : true,
# FIXME(Qyriad): is this right?