ghcjs: move list of stage 1 packages into ghcjs derivation
This makes it easier to ensure that the list of stage 1 packages accurately matches the given version of ghcjs, and makes it possible for this list to be overridden
This commit is contained in:
@@ -136,6 +136,33 @@ in mkDerivation (rec {
|
||||
isGhcjs = true;
|
||||
inherit nodejs ghcjsBoot;
|
||||
inherit (ghcjsNodePkgs) "socket.io";
|
||||
|
||||
# This is the list of the Stage 1 packages that are built into a booted ghcjs installation
|
||||
# It can be generated with the command:
|
||||
# nix-shell -p haskell.packages.ghcjs.ghc --command "ghcjs-pkg list | sed -n 's/^ \(.*\)-\([0-9.]*\)$/\1_\2/ p' | sed 's/\./_/g' | sed 's/^\([^_]*\)\(.*\)$/ \"\1\"/'"
|
||||
stage1Packages = [
|
||||
"array"
|
||||
"base"
|
||||
"binary"
|
||||
"rts"
|
||||
"bytestring"
|
||||
"containers"
|
||||
"deepseq"
|
||||
"directory"
|
||||
"filepath"
|
||||
"ghc-prim"
|
||||
"ghcjs-prim"
|
||||
"integer-gmp"
|
||||
"old-locale"
|
||||
"pretty"
|
||||
"primitive"
|
||||
"process"
|
||||
"template-haskell"
|
||||
"time"
|
||||
"transformers"
|
||||
"unix"
|
||||
];
|
||||
|
||||
mkStage2 = import ./stage2.nix {
|
||||
inherit ghcjsBoot;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user