-
-
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
[WIP] build musl-native instead of cross #3
Conversation
No needed in this configuration, and I think only needed when using the bootstrap compiler which is only patched to be "good enough" AFAICT.
Oh, I think some of the problems remaining is for packages that have libraries and executables both, and using wrong linker flags for creating the libraries. Maybe. Heading out for the evening but that might be worth checking-- with |
This is so good I am super happy! Thanks a lot for putting in this effort, this saves me so much time experimenting. |
One of the packages that don't build yet, the
|
I finally figured out one of the remaining big problem ( But And I succeeded building stack 1.7.1 statically this way. To do this conveniently from nix instead of having to change the package's cabal file, we would need a cabal configure-time flag that does this, e.g. named Which looks like this cabal feature request: haskell/cabal#391 |
Started out wanting to show you how to use nixpkgs + musl, but.....
Anyway I'm new to the nixpkgs haskell packaging infrastructure and I know some of this is going about things the slightly wrong way but seems to work for a few packages at least.
Not all listed here work, but wanted to show you where i ended up!
Feel free to pick+choose bits that you like, definitely don't need to actually "pull" these :).
Hope this helps, GLHF!