Skip to content

Add :doc for lambdas to repl with nix-doc #10771

@roberth

Description

@roberth

Implemented in Lix. Feel free to cherry-pick it. ^.^ https://gerrit.lix.systems/c/lix/+/564

Originally posted by @lf- in #3904 (comment)


The nix-doc dependency is not ideal, unless it could be a start towards doing more Rust.
Reimplementing without rustdoc is highly non-trivial, as we'll want to preserve evaluator performance. I'd spent ~2 days on that rather fruitlessly last year, so I'd just cherry-pick.
We might want to put it behind a package.nix flag. Perhaps buildNoGc could become a more general nix_minimal.
The static build doesn't have to be minimal (and this dependency is linked, so that works), so I'd keep that one similar to the normal build, or add the combination nix_minimal_static.

If we agree to do this, it is an alternative to

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request or proposallanguageThe Nix expression language; parser, interpreter, primops, evaluation, etcreplThe Read Eval Print Loop, "nix repl" command and debugger

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions