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

ghc.nix repository needs documentation for working with tools used for isolated nix environments. #99

Open
zeta-00 opened this issue Feb 7, 2021 · 2 comments

Comments

@zeta-00
Copy link

zeta-00 commented Feb 7, 2021

Hello there, I use (direnv+nix-direnv+emacs-direnv), but I'm having a hard time finding instructions on how to set this up with ghc.nix repository instead of just using the nix-shell command, it would be any of you could add documentation for using ghc.nix with tools like (direnv+nix-direnv+emacs-direnv) for working in isolated environments, I feel in the dark here. Well so far I only got 1 bash error that I need to fix, so that's a good sign.

Thanks in advance for the help!

@alpmestan
Copy link
Owner

I'm just running nix-shell manually to enter the environment in my terminal, and this works smoothly, so I suspect this is more a direnv/nix-direnv/emacs-direnv question than a ghc.nix one, isn' t it? Also, since you've asked about this a few times already but haven't found some help, I suspect none of the other ghc.nix devs have a similar setup as yours. I however don't know what other place would be better suited to find some help. But frankly, using nix-shell manually isn't that bad =) It would be a shame to let this prevent you from contributing to GHC.

@zeta-00
Copy link
Author

zeta-00 commented Feb 7, 2021

@alpmestan

Hello There,

Thanks for the response!
In one of the other issues that I posted in this repository(#74), it looks like someone got their (lorri+direnv+zsh) setup working with ghc.nix. I asked him if he could paste his shell.nix code and any extra steps that he did to get it working. So, I think that I'm close, but I'm probably missing something.

As for doing nix-shell manually, I would have a hard time getting ghcide working with emacs, and I don't want to try contributing to ghc until I get ghcide working with emacs in an isolated nix environment, because, I'm not a Haskell expert, so being able to use a haskell-language-server to contribute to ghc, will help me out greatly.

Anyways, thanks again for the response!

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

2 participants