Skip to content

nh <cmd> repl does not work #237

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

Closed
imvaskel opened this issue Mar 12, 2025 · 5 comments · Fixed by #277 · May be fixed by #258
Closed

nh <cmd> repl does not work #237

imvaskel opened this issue Mar 12, 2025 · 5 comments · Fixed by #277 · May be fixed by #258

Comments

@imvaskel
Copy link

It seems that on Lix version 2.92 (not sure if this occurs before), any of the repl commands do not work. This is because to use a flake in the repl loadable, you need the experimental feature repl-flake. This requirement is not mentioned anywhere. I think that it should either inform the user that that feature is needed or just pass the experimental feature itself.

@viperML
Copy link
Collaborator

viperML commented Mar 12, 2025

Indeed. Maybe autoconfiguring the child nix process is debatable, but at least nh should show a warning.

@imvaskel
Copy link
Author

I'm looking at adding this in, is running nix config show and parsing out the JSON a good approach for reading the experimental features?

@viperML
Copy link
Collaborator

viperML commented Mar 14, 2025

Yeah, I was thinking the same. It shouldn't add much overhead, and there's no need to parse the whole json, just what we need

@imvaskel
Copy link
Author

So there seems to be an issue with this approach: I am running Lix 2.92 and they seem to have changed the command to return a bit enum of the experimental features, while Lix <2.92 and Nix just return an array of the enabled features.

@imvaskel
Copy link
Author

After further consideration, I don't think that it is worth it to add a check within the code, maybe some sort of FAQ entry about this is the best approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants