nixpkgs/pkgs/development/compilers/ghcjs-ng
Ryan Burns 89850d10e0 ghcjs: fix eval
This was causing release-cross to fail hydra eval, so it hasn't been
building for the last few days. So note that although ghcjs still
does not build, this fixes eval so the jobset can proceed.

Verified with `hydra-eval-jobs pkgs/top-level/release-cross.nix -I nixpkgs=.`
2021-01-26 19:58:53 -08:00
..
8.6 ghcjs: fix eval 2021-01-26 19:58:53 -08:00
common-overrides.nix
configured-ghcjs-src.nix
default.nix treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix 2021-01-19 01:16:25 -08:00
ghcjs-base.nix ghcjs: fix eval 2021-01-26 19:58:53 -08:00
mk-stage0.nix
README.md

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