-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Build GHC without GMP integer library #5493
Comments
Note that the Haskell package set structure is going to become much simpler in the future: https://github.com/peti/nixpkgs/blob/haskell-ng/pkgs/top-level/all-packages.nix#L3350. I guess, it would be nice to have a generic |
This is really nice, I'm looking forward to it, thank you. |
@peti the buildInputs need to change to use integer-simple instead of integer-gmp for the derivations. There's usually also flags such as |
We probably don't have to worry about the Cabal flags as those are auto-detected at compile time based on the available build environment. Dependencies on Personally, I'd love a generic mechanism for our GHC builds that can be used to pass an arbitrary |
(triage) can we close this @peti? |
#22121 will remedy this issue once it's merged. |
I didn't find a way to build/install GHC without GMP with current
nixpkgs
. It boils down to addingINTEGER_LIBRARY = integer-simple
in thebuild.mk
file.I'm willing to contribute, if this is indeed missing, but given that the haskell-related derivations are organized in a specific and well-thought manner, I figured I should ask for pointers before naively stepping in the wrong direction.
At first glance, I would do the following:
development/compilers/ghc/X.Y.Z.nix
derivations to accept a newuseIntegerSimple
flag as input;extraArgs
ofpackagesFun
(fromhaskell-defaults.nix
) to forward this flag if needed.What do you think ?
The text was updated successfully, but these errors were encountered: