nixpkgs/pkgs/development/compilers/ghcjs-ng
Matthew Justin Bauer 1aaab72291
ghcjs-ng: fixup system tuple
on i686-linux, the libexec dir should be /libexec/i386-linux-ghc-8.2.2 not /libexec/i686-linux-ghc-8.2.2
2018-06-09 19:45:46 -04:00
..
8.2 Dont haddock ghcjs in either version 2018-05-16 03:11:32 -04:00
8.4 Bump GHCJS 8.4 2018-05-17 05:35:07 -04:00
common-overrides.nix Dont haddock ghcjs in either version 2018-05-16 03:11:32 -04:00
configured-ghcjs-src.nix Fix GHCJS 8.4/8.2 in sandboxed builds (#41411) 2018-06-03 23:28:17 +02:00
default.nix ghcjs-ng: fixup system tuple 2018-06-09 19:45:46 -04: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.2 \
  | jq '{ url, rev, fetchSubmodules, sha256 }' \
  > 8.2/git.json
$ cat $(nix-build ../../../.. -A haskell.compiler.ghcjs82.genStage0 --no-out-link) > 8.2/stage0.nix