-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Update nix setup #56
Update nix setup #56
Conversation
Is this PR ready or is it work in progress? |
@csabahruska oh that's funny, I was about to ask on gitter channel if this could be merged in. It's ready. 😄 |
Also, it might currently take quite some time to build some dependencies (like GHC), but we could create a cachix instance for grin organization so all build artifacts can be cached (reducing build times of dependencies to simply copying files from remote destination to locally). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
I have encountered with this while building in debian, the suggested --option seems to be fixing my nex issue. NixOS/nix#3142, building the rest of the universe now... |
I got this at my debian when stack build/test:
It needs further investigation at my machine, but the nix-shell got activated and the stack build started. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
did work on Ubuntu 16.04 |
I tested this on my Macbook with OSX and on my previous Linux laptop with Ubuntu (18.04) and both seemed to compile + run tests, maybe the error is due to the sandboxing option @andorp? Or something different on Debian? |
@luc-tielen : I think this is not a showstopper as it works 75% of the observed cases. I plan the update my dev machine soon, and hopefully the problem will go away. |
This PR continues the work from #22.
I used https://github.com/input-output-hk/haskell.nix/ to keep nix in sync with stack.
I can get it to build on OSX, but I'm still getting an "stdio.h" not found error when compiling the C files. I think I might need to add another nix overlay for this.
You can test it by doing the following:
$ nix-shell $ # once inside in the nix-shell you can run your stack commands like you would without nix