-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Nixpkgs dev. support & static-haskell-nix builds #601
Conversation
Okay, figured out the segfault problem (n.b.: it's not really figured out, but it's worked around enough). Will be pushing that in a bit. |
Ready to merge. |
Hi, Colin. I'm finally doing that "look at how magical NixOS is" thing from 6 years ago. The patches are to bodge static-haskell-nix into building with Stackage lts-15.12, which means stack2nix on Stack 2.1 and also means static-haskell-nix on GHC 8.8.3 (and Cabal 3.0.1.0). I'm not sure how much of this is readily upstreamable.
Can you elaborate on what each file is, and how this is used? I'm particularly curious about that giant |
|
I'm waiting to hear back from the guy behind the static nix stuff to see if Aura is already built by his Nix build servers. If so, we might be able to get these nice reduced binary releases "for free" without needing to commit anything to Aura directly. |
It's not built right now. Aura is commented out due to build problems. https://github.com/nh2/static-haskell-nix/blob/dbce18f4808d27f6a51ce31585078b49c86bd2b5/survey/default.nix#L1319 Plus, we're on a LTS that upstream static-haskell-nix doesn't support due to Stack 2. This is why we're patching it here. |
An update: NixOS/nixpkgs#43795 (comment) |
Thank you for your work on this. With some advice that I recently found in the Thoughts? |
That sounds good. I'd still like the Nixpkgs support code for development, though, which is the first commit in here if you don't want me to make a new PR. |
Yes that's reasonable :) Let me perform some git-foo. |
I've cherry-picked the first commit from here. Thanks again for this. |
The former commit is just enough to get
nix-shell
or lorri happy, and it works fine.The latter commit gets us static builds with nh2/static-haskell-nix, and it's currently blocked on strange segfaults from GCC+Musl C binaries (nh2/static-haskell-nix#73).