-
Notifications
You must be signed in to change notification settings - Fork 40
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
Problems with nix toolchain #70
Comments
Unfortunately I don't use nix myself, and the support we have came from contributors. The last PR related to nix came from @iclanzan, and the most recent change related to And if you are up for trying to add support to the |
This stems from relying on "master" here, instead of a particular commit. Unfortunately I tried building a few different configurations to submit a fix, but hit various issues on my mac including one with an unreleased fix in ghc: https://gitlab.haskell.org/ghc/ghc/-/issues/18446. I currently can't build with nix or stack due to these big sur compat issues. |
I'm also running Big Sur and have run into the same problem. Here is a purescript issue on the matter: purescript/purescript#3960 And I just noticed that someone posted a workaround there a few hours ago. I haven't tried it yet. |
I just tried it and it worked for me, but I had to compile multiple times, getting a different error each time until it finally worked. I guess ghc is non-deterministic. |
I know this is an old issue, but related to some questions that I had on what's desired/desirable with respect to Nix support. As far as I understand, My desire is to provide flake support for easier consumption by other flake-enabled projects.However, while Stack has support for Nix, and Nix has support for Stack, My question is whether you'd consider having two different dependency locking schemes present (Stack and Nix flakes), or if that would be considered too problematic for users or maintainers (one more thing to update and test). I've been working off of piq9117@d633da9, which takes the As an aside (and this should probably go in a different issue)... I'd also like to take this opportunity to thank you for your work on this project, and to provide a disclaimer that at least one statement that I made above is probably wrong/woefully ill-informed :) |
Here's a PR for my initial attempt at flakifying things. |
Hi @jjthiessen , sorry for the very late response. I haven't been working on or looking at this project for a while now. As discussed previously in this thread, I've never been a nix user (nothing against it, just haven't ever looked into it). What I have merged in the past relies on me simply trusting the submitters. I've figured that as long as it doesn't break the regular stack builds, there shouldn't be a problem. As to your question about testing, I do have some manually run tests based on some of the standard purescript tests. I had hoped to automate it, but never got around to it before stopping work on my project. The test runner code is found at https://github.com/andyarvanitis/purescript-native/blob/golang/src/Tests.hs . By "manually" I mean I run the purescript version of those tests (using node.js), capture that output, run my backend version and capture that output, and then simply diff the two. It's fairly primitive, but even just running those tests often reveals a lot of problems. |
No worries, @andyarvanitis. I compulsively check for issue and PR updates/notifications for the first week. By the end of the second week, I've forgotten about them entirely :) I'm reasonably new to Nix (and newer yet to flakes), and this was the time I looked at Haskell packaging with Nix, so it has largely been an exercise in doing the wrong thing then realising that the existing solution is closer to what I was aiming for than I thought. I think it's an improvement, but I wouldn't take my word for it. Thanks for the testing overview. I'll have to try running through that (for both the stack build and the Nix build) for my PR to make sure I didn't inadvertently break anything along the way. It might be a little while before I get back to it though. |
I'm in the
golang
branch, trying to build or initialize a shell does not workwith the following error
and of course the problem is in
default.nix
where apparently the tarball downloaded does not have the
nixpkgs-1903
anymore, do you know a quickfix for this? Otherwise I could look into it.
Also, the
cpp
branch, which I'm mostly interested in, does not havethe nix toolchain.
Thanks for the awesome project.
The text was updated successfully, but these errors were encountered: