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

Error when loading nix-shell #9

Closed
guaraqe opened this issue Mar 29, 2017 · 5 comments
Closed

Error when loading nix-shell #9

guaraqe opened this issue Mar 29, 2017 · 5 comments

Comments

@guaraqe
Copy link

guaraqe commented Mar 29, 2017

I'm getting the following error when dante starts:

error: cannot auto-call a function that has an argument without a default value (‘mkDerivation’)

Using the command nix-shell --run 'cabal repl' works normally when I launch it from the shell. I get the same error if I do nix-shell default.nix.

My shell.nix is the following:

with (import <nixpkgs> {});
(haskellPackages.callPackage ./. {}).env
@tmcgilchrist
Copy link
Contributor

Could it be something to do with the shell that Emacs is using to launch nix?

@guaraqe
Copy link
Author

guaraqe commented Mar 31, 2017

I just tried doing nix-shell --run 'cabal repl' from the eshell and it works normally. I don't know if that helps...

@jyp
Copy link
Owner

jyp commented Apr 6, 2017

Could it be that dante is picking up another shell file? Set the dante-project-root variable if necessary.

@jyp
Copy link
Owner

jyp commented Apr 10, 2017

I believe that 8332bcd fixes the issue. Please check.

@guaraqe
Copy link
Author

guaraqe commented Apr 10, 2017

Checked, works perfectly, thank you!

@jyp jyp closed this as completed Apr 10, 2017
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

No branches or pull requests

3 participants