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

nix-repl.el: make it work with newer nix repl command #45

Merged
merged 1 commit into from Jun 29, 2018

Conversation

eqyiel
Copy link
Contributor

@eqyiel eqyiel commented Jun 29, 2018

If you try to use nix-repl with recent Nix (with a builtin nix repl command), the process will die:

error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied

Process Nix-REPL exited abnormally with code 1

This makes it so that M-x nix-repl command uses nix repl by default.

For people stuck on older Nix, the existing behaviour can be restored by (setq nix-repl-executable-args nil) and (setq nix-repl-executable "nix-repl").

This could probably be improved by parsing the output of nix --version and selecting a suitable command, but I'm not sure how best to do that.

@matthewbauer matthewbauer merged commit 57ac40d into NixOS:master Jun 29, 2018
@matthewbauer
Copy link
Member

Thanks! I haven’t used nix-repl.el much but I’m glad someone can fix these issues:

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

Successfully merging this pull request may close these issues.

None yet

2 participants