-
Notifications
You must be signed in to change notification settings - Fork 116
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
Revision of approach #60
Comments
@CThuleHansen you might need to add [zlib.dev zlib.out] in your "buildInputs" ? |
@PierreR I had only installed nix and cabal using the setup here: https://github.com/Gabriel439/haskell-nix Without nix, cabal was able to install it out of the box. |
I don't think this is an issue with the unstable channel. What's happening here is that Nix is enforcing purity so it does not depend on non-Nix-installed system libraries by accident. This helps minimize the problem where a build that works on your machine fails to work on another person's machine if they are missing some preinstalled system library. Also, this guide is specifically project-oriented and not for project-independent use. However, there is still a way to do what you want. You can create a temporary Nix shell with $ nix-shell --packages 'haskellPackages.ghcWithPackages (pkgs: [ pkgs.hakyll ])' To learn more, see: https://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure |
Hi Gabriel, |
@CThuleHansen: What was the issue that you ran into with |
I ran into this too. I'm a brand new nix user, so I was following the instructions which failed at
with
|
@cfhammill: That is an issue with the |
Will do, thanks! |
@cfhammill: You're welcome! 🙂 |
@Gabriel439 @cfhammill same issue I encountered. That is why I might thought it would be good to advice for a more stable channel? |
It should be resolved on |
@cfhammill thank you! |
No problem 🙂 |
@Gabriel439 I guess that cabal2nix could be part of an individual project as well instead of in the profile. How come it is not? |
Hi Gabriel,
I sort of hit a dead-end with nix yesterday and reverted to regular cabal without having nix install it.
First of, I was trying to install hakyll with cabal install, but this failed with:
I am on mac, so I decided to search a bit for this, but zlib should be part of standard install, and I located the folders. So that could not be the issue.
Then I read some people reinstalled their environment, which I did.
This resulted in
nix-env --install cabal2nix
breaking.I asked around on freenode in nixos-darwin, and apparently it broke recently.
I was suggested to use 18.03 channel either for everything or just for cabal2nix.
FInally, I just removed all signs of nix and used regular cabal installed via homebrew and it worked straight away.
Maybe the tutorial should cover and switch to stable channels in the very beginning?
The text was updated successfully, but these errors were encountered: