Closed the-dr-lazy closed 3 years ago
GHC 8.10 is brand new in nixpkgs
, and there are many packages thta don't work with it yet, so I will probably have to wait until I can look into making that work.
It's been 3 month since the issue was opened and 8.10 is not that brand new already. I am using it from nixpgs-unstable (both gmp and integer-simple ones) with dynamic linking, I think it's time for brining static linking to it. I'm happy to help if there's a known pattern to follow to bring a new compiler version to this project.
Hey, the approach I use is usually the following:
master
defaultCabalPackageVersionComingWithGhc
to include an entry for 8.10compiler ? "ghc865",
to the new GHC version (you can also set that via a nix-build
--argStr
NIX_PATH=nixpkgs=nixpkgs nix-build --pure survey/default.nix --arg disableOptimization true -A haskellPackages.hello
, make that work-A working
-A workingStackageExecutables
--arg disableOptimization true
nixpkgs
where possible, or putting them into the submodule when it's difficult.Another blocker for this: https://github.com/NixOS/nixpkgs/issues/85924
I've made a WIP PR #98 in which we can work on this together.
I am currently quite busy so I would appreciate for others to join in the effort to make it work together.
Road blockers should also be posted there (instead of here).
Awesome, thanks! Let me check how much time I can allocate from my working hours, but if not, I can spare some weekend time as I also have pet projects that run on 8.10 and that I'd like to bring static linking to.
@avanov I've put a lot of fixes in #98 by now so there is some chance for your packages to build on that now; however, a lot of packages simply have broken upper bounds and this will only be fixed when Stackage updates to an LTS with GHC 8.10 in, and nixpkgs updates to that Stackage version.
Nevertheless, there are more things that can be fixed independent of that, and I have listed them in the description of #98.
In particular, helping with https://github.com/nh2/static-haskell-nix/issues/99#issuecomment-665400600 would be the biggest impact contribution (tracked at #99).
After that, it may also make sense to help improving GHC 8.8.3 support (which currently is also dependent on the above sentence).
PR #98 was merged, GHC 8.10 is now fully working.
I have tried to build GHC 8.10.1 against musl in thebrodmann/soallpeach/next.
static.nix
default.nix
It failed with the following error:
I know that GHC 8.10.1 is not supported yet, but I'm interested to see is it possible or not?