nixpkgs/pkgs
sternenseemann 6392c21c1f haskell.compiler.ghcHEAD: allow building the JavaScript backend
This is now possible by building a cross compiler for js-unknown-ghjs
using `pkgsCross.ghcjs.buildPackages.haskell.compiler.ghcHEAD`.

To allow this, the following things needed to be done:

* Disable dependencies that wouldn't work:

  - Don't pull in ncurses for terminfo
  - Don't pull in libffi
  - Don't pull in libiconv
  - Don't enable the LLVM backend
  - Enable gmp-less native-bignum backend

* Use emscripten instead of a C compiler. The way this works is inspired
  by emscriptenPackages, but avoids the following flaws:

  - Instead of using a custom configurePhase, just set
    `configureScript = "emconfigure ./configure";` which is much simpler.

  - Create writable EM_CACHE before configuring, as configure scripts
    want to compile test programs.

  Additionally, we need to disable the targetCC check, as it is not
  applicable with emscripten which never appears as part of stdenv.

* Use generic $configureScript in installPhase to be able to work with
  our emconfigure trick.

Note that the corresponding Haskell package set does not work yet. Cabal
doesn't seem to like GHC 9.7 yet and the generic-builder is clueless
about the JS backend.
2023-01-04 00:02:29 +01:00
..
applications Merge pull request #208255 from sarcasticadmin/rh/1672308083ax25apps 2023-01-02 23:59:56 +01:00
build-support Merge pull request #208358 from Artturin/makepkgconfigitemfixcross 2022-12-30 15:19:01 +02:00
common-updater
data Merge master into haskell-updates 2023-01-03 00:12:24 +00:00
desktops Merge pull request #207715 from jtojnar/gnome-debug 2023-01-02 06:40:46 +01:00
development haskell.compiler.ghcHEAD: allow building the JavaScript backend 2023-01-04 00:02:29 +01:00
games quakespasm: 0.95.0 -> 0.95.1 2023-01-02 21:24:09 +08:00
misc wiki-tui: add changelog to meta 2023-01-01 18:34:59 +01:00
os-specific systemd: fix evaluation in pkgsCross.ghcjs.buildPackages 2023-01-03 22:19:59 +01:00
pkgs-lib
servers Merge pull request #208609 from LeSuisse/redis-7.0.7 2023-01-03 00:29:33 +01:00
shells Merge pull request #207224 from ncfavier/nix-bash-completions 2023-01-01 10:43:13 +01:00
stdenv Merge pull request #208478 from trofi/comment-stdenv-bootstrap 2023-01-02 17:28:43 -05:00
test
tools Merge pull request #208807 from qowoz/yt-dlp 2023-01-03 00:02:08 +01:00
top-level haskell.compiler.ghcHEAD: use LLVM 14 2023-01-03 22:42:57 +01:00