depot/third_party/nixpkgs/pkgs/development/compilers/ghcjs-ng
Default email eefb417d14 Project import generated by Copybara.
GitOrigin-RevId: a52e974cff8fb80c427e0d55c01b3b8c770ccec4
2020-11-06 01:33:48 +01:00
..
8.6 Project import generated by Copybara. 2020-09-24 23:45:31 -05:00
common-overrides.nix Project import generated by Copybara. 2020-04-24 19:36:52 -04:00
configured-ghcjs-src.nix Project import generated by Copybara. 2020-04-24 19:36:52 -04:00
default.nix Project import generated by Copybara. 2020-11-06 01:33:48 +01:00
ghcjs-base.nix Project import generated by Copybara. 2020-04-24 19:36:52 -04:00
mk-stage0.nix Project import generated by Copybara. 2020-04-24 19:36:52 -04:00
README.md Project import generated by Copybara. 2020-04-24 19:36:52 -04:00

New build system for GHCJS 8.2

ghcjs-8.2 reworked the build system, and now comes with its own small package set of dependencies. This involves autogenerating several sources and cabal files, based on a GHC checkout. callCabal2nix is off limits, since we don't like "import from derivation" in nixpkgs. So there is a derivation that builds the nix expression that should be checked in whenever GHCJS is updated.

Updating

$ nix-prefetch-git https://github.com/ghcjs/ghcjs --rev refs/heads/ghc-8.4 \
  | jq '{ url, rev, fetchSubmodules, sha256 }' \
  > 8.4/git.json
$ cat $(nix-build ../../../.. -A haskell.compiler.ghcjs82.genStage0 --no-out-link) > 8.4/stage0.nix
$ cabal2nix --compiler ghcjs git://github.com/ghcjs/ghcjs-base > ghcjs-base.nix