Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
roberth opened this issue May 24, 2024 · 2 comments · Fixed by #11072
Closed

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

roberth opened this issue May 24, 2024 · 2 comments · Fixed by #11072
Labels
feature Feature request or proposal language The Nix expression language; parser, interpreter, primops, evaluation, etc repl The Read Eval Print Loop, "nix repl" command and debugger

Comments

@roberth
Copy link
Member

roberth commented May 24, 2024

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

@roberth roberth added feature Feature request or proposal language The Nix expression language; parser, interpreter, primops, evaluation, etc repl The Read Eval Print Loop, "nix repl" command and debugger labels May 24, 2024
@roberth roberth changed the title Implemented in Lix. Feel free to cherry-pick it. ^.^ https://gerrit.lix.systems/c/lix/+/564 Add :doc to repl with nix-doc May 24, 2024
@fricklerhandwerk
Copy link
Contributor

I'd sure like the minimal Nix idea, which we could eventually use for bootstrapping Nix from vanilla Linux, and then have a Nix-only build setup for Nix itself. Whether we want a very heavy build, and in which order to approach building the complexity tower, should probably be discussed in the team.

@roberth roberth changed the title Add :doc to repl with nix-doc Add :doc for lambdas to repl with nix-doc Jun 12, 2024
@roberth roberth mentioned this issue Jul 9, 2024
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-07-08-nix-team-meeting-minutes/49099/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal language The Nix expression language; parser, interpreter, primops, evaluation, etc repl The Read Eval Print Loop, "nix repl" command and debugger
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants