about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghcjs
diff options
context:
space:
mode:
authorRyan Trinkle <ryan.trinkle@gmail.com>2016-07-27 14:28:31 -0400
committerRyan Trinkle <ryan.trinkle@gmail.com>2016-07-27 14:28:31 -0400
commit5a622db103630962ca316e4ee6625ad68abf9905 (patch)
tree36b9546eccf7c3ed1d2cb6273f0e4cc4b4b3c9f7 /pkgs/development/compilers/ghcjs
parent676a7b698f72c3f426d71d6eed34589a40363b63 (diff)
downloadnixlib-5a622db103630962ca316e4ee6625ad68abf9905.tar
nixlib-5a622db103630962ca316e4ee6625ad68abf9905.tar.gz
nixlib-5a622db103630962ca316e4ee6625ad68abf9905.tar.bz2
nixlib-5a622db103630962ca316e4ee6625ad68abf9905.tar.lz
nixlib-5a622db103630962ca316e4ee6625ad68abf9905.tar.xz
nixlib-5a622db103630962ca316e4ee6625ad68abf9905.tar.zst
nixlib-5a622db103630962ca316e4ee6625ad68abf9905.zip
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
Diffstat (limited to 'pkgs/development/compilers/ghcjs')
-rw-r--r--pkgs/development/compilers/ghcjs/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghcjs/default.nix b/pkgs/development/compilers/ghcjs/default.nix
index f677cd771229..c6607906f734 100644
--- a/pkgs/development/compilers/ghcjs/default.nix
+++ b/pkgs/development/compilers/ghcjs/default.nix
@@ -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;
     };