Setup stack's nix integration#63
Conversation
|
Hey @alexfmpe, sorry I'm just getting around to trying this. I was responsible for organizing two workshops at Devcon this year in Osaka, so was a bit busy in addition to working on some of the SDK stuff. I'm getting some failures, maybe you know why: |
|
No problem. I'll take a look. |
|
Was this on a mac? The command worked fine on my NixOS, but I reproduced that error on my Mac. I think we were running into NixOS/nixpkgs#65927. I bumped nixpkgs to include the PR addressing it and it builds on both systems for me now. |
|
|
|
FWIW I tested both on Mac and Linux and am getting the same error(s): and on Mac I get the additional Thought these might provide good data points. I'm assuming you both have the required |
|
I do not have |
If we change the |
|
The one thing I can think of is that you might have built without the nix flag, and then stack didn't rebuild properly for whatever reason. I can adapt the |
|
yes that should work |
https://docs.haskellstack.org/en/stable/nix_integration/
Doesn't actually solve #3 (#53 will probably take a while to finish), but it does allow nix to handle non-haskell dependencies which allows the stack build to work on NixOS.
I left the nix integration disabled by default on non-NixOS, but it can be enabled with a flag (e.g.
stack --nix build.