-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Cabal hell inside of nix-shell #505
Comments
Welcome! The problem here isn't really cause by Nix. Rather it's because:
To solve the immediate problem: Are you able to relax the lower bound on Here's what I would do for running
Hoogle support Currently hoogle database generation has a bug preventing it from working when the package has only builtin dependencies (base, text, etc...). (NixOS/nixpkgs#82245). Once you have added a non-builtin dependency (or are using a nixpkgs revision with NixOS/nixpkgs#127028 or an alternate fix) you can remove the
As an aside, did you install GHC 8.10.5 with something other than Nix? 8.10.5 |
Thank you so much for such a detailed reply! |
No problem, happy to help. Feel free to join us in the Nix-Haskell Matrix room too.
I guess it was an unfortunate interaction between
Probably no point keeping this GHC around, as any nix-provisioned Haskell environment will put its own GHC there anyway. I don't think that keeping it around will cause any problems (aside from the
I've never used direnv I'm afraid, so can't comment authoritatively. I believe that any nix shell environment can be used with direnv though, but I don't know the details. |
Most notably, |
I guess my followup question is how do people typically develop inside of nix-shell? I usually develop using emacs with lsp-mode ect and it doesnt seem to work properly inside of nix-shell without direnv. |
No, |
Thank you both very much! |
New to nix entirely. Off the back of a fresh install of nix, I installed the following via "nix-env -i":
I then followed these instructions:
This results in the following:
$ cabal run
Are these instructions not correct? What do I need to do to get nix and cabal to play nice? I should mention that there is not a locally installed cabal on my machine.
Thanks in advance!
The text was updated successfully, but these errors were encountered: