mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
6392c21c1f
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. |
||
---|---|---|
.. | ||
8.6.5-binary.nix | ||
8.8.4.nix | ||
8.10.2-binary.nix | ||
8.10.7-binary.nix | ||
8.10.7.nix | ||
9.0.2.nix | ||
9.2.4-binary.nix | ||
9.2.4.nix | ||
9.2.5.nix | ||
9.4.2.nix | ||
9.4.3.nix | ||
9.4.4.nix | ||
cabal-paths.patch | ||
common-hadrian.nix | ||
gcc-clang-wrapper.sh | ||
head.nix | ||
rename-numa-api-call.patch | ||
respect-ar-path.patch | ||
sphinx-4-configuration.patch |