NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.36k stars 14.32k forks source link

ghc/ghcjs 8.6 #172802

Open tysonzero opened 2 years ago

tysonzero commented 2 years ago

Project description ghcjs-8.10 seems more or less broken for large projects due to massive memory usage and performance regression, as well as a regular bug: https://github.com/ghcjs/ghcjs/issues/821

Adding support for ghcjs-8.6 along with re-adding ghc-8.6 to go with it would allow us to move to a new nixpkgs which would be fantastic.

Metadata

cdepillabout commented 2 years ago

cc @dfordivam and @Ericson2314

dfordivam commented 2 years ago

@tysonzero Using ghc 8.6 on the latest nixpkgs would not work smoothly / at all, there would be a number of haskell packages which would fail to compile. And I dont think the haskell package maintainers would be willing to add the ghc 8.6 back. In the current situation the ideal solution is to get the ghcjs 8.10 fixed.

Nevertheless you can still use ghc/ghcjs 8.6 in your projects by including an older nixpkgs, just for the ghc/ghcjs, and then doing an override of the ghc/ghcjs in the latest nixpkgs. Of course things would be quite broken in my opinion.

sternenseemann commented 2 years ago

I think packaging GHCJS 8.6 would have the following prerequisites:

tysonzero commented 2 years ago

@dfordivam Yeah older nixpkgs are getting rather difficult to use with time. Particularly with the git:// deprecation basically obliterating all old nixpkgs versions that don't cache hit, wish we had nix/ipfs already.