-
Notifications
You must be signed in to change notification settings - Fork 848
Cannot install GHC through stack on NixOS #4196
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
Comments
same problem here |
+1 from me. I detailed my issue in an SO question here. Has this problem been investigated? Anything we can do to help? |
We didn't get a windows+nix machine to investigate this on, unfortunately. |
@mihaimaruseac why do we need Windows? This issue looks to be about NixOS, isn't it?
|
@qrilka I've just tried that command (I'm running on Nixos) and I get:
This might also be helpful in identifying the issue (similar stackoverflow question): Seems like stack is referencing a newer GHC that wouldn't yet be present in the nixpkgs of a user. So potentially this could be detected and a more helpful error message shown? (I'm just guessing here) |
@chrissound what channel are you on? And what commit? |
@qrilka I saw
at start of log and didn't parse further, my bad. |
@qrilka I was on NixOS
After an |
@twashing would you care to show what |
@qrilka I can definitely do that. I'll also include what happens when I run A)
B) Pastebin for C) Pastebin for |
@twashing for such a long traces I'd advise to use gist or other pastebin to keep discussion more readable, thanks in advance. |
@qrilka 10-4 on the other stuff. Defining
Yet I'm still suspicious of when creating a new project with
Here's what my entry looks like. Are we able to tweak anything version-wise?
|
@twashing I don't quite understand how could you have version 1.9.3 being installed and yet logging 1.6.5 in its output? Could it be something happening with your $PATH? You stay you run |
@qrilka Yep you're right. My local user uses a different stack than root. Thanks for all the help by-the-way. As you can tell, I'm new to Nix and NixOS.
But with my local stack being installed as user root, I can't upgrade (permission errors when writing to file).
I've mostly been updating |
NixOS expert would help you better here but as far as I know |
@qrilka Too right... |
@h2000Stefanov @fex42 do you still see this problem and could it be about an old Stack version? |
For me it disapeared also after upgrading, Thanks! |
stack setup gives me this error:
Now,I have no idea how to fix this.Install GHC through nixpkgs maybe?Any possible workaround?
The text was updated successfully, but these errors were encountered: