Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / compilers / ghcjs-ng / README.md
blob99ad980c965ebb15b9227401a770b7780baf8191
1 New build system for GHCJS 8.2
2 ---
4 `ghcjs-8.2` reworked the build system, and now comes with its own
5 small package set of dependencies. This involves autogenerating
6 several sources and cabal files, based on a GHC
7 checkout. `callCabal2nix` is off limits, since we don't like "import
8 from derivation" in nixpkgs. So there is a derivation that builds the
9 nix expression that should be checked in whenever GHCJS is updated.
11 Updating
12 ---
14 ```
15 $ nix-prefetch-git https://github.com/ghcjs/ghcjs --rev refs/heads/ghc-8.4 \
16   | jq '{ url, rev, fetchSubmodules, sha256 }' \
17   > 8.4/git.json
18 $ cat $(nix-build ../../../.. -A haskell.compiler.ghcjs82.genStage0 --no-out-link) > 8.4/stage0.nix
19 $ cabal2nix --compiler ghcjs git://github.com/ghcjs/ghcjs-base > ghcjs-base.nix
20 ```