about summary refs log tree commit diff
path: root/pkgs/top-level/haskell-packages.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2016-11-15 16:59:09 -0500
committerShea Levy <shea@shealevy.com>2016-11-15 16:59:09 -0500
commit845b56d25af40d90e3cd6ec4d60c6b3f091c7588 (patch)
treec04ea0d21214812ce2826ff6f27a3a800a3ea9b4 /pkgs/top-level/haskell-packages.nix
parentf477bc98bec323cdb58735580f17701238a7bc68 (diff)
downloadnixlib-845b56d25af40d90e3cd6ec4d60c6b3f091c7588.tar
nixlib-845b56d25af40d90e3cd6ec4d60c6b3f091c7588.tar.gz
nixlib-845b56d25af40d90e3cd6ec4d60c6b3f091c7588.tar.bz2
nixlib-845b56d25af40d90e3cd6ec4d60c6b3f091c7588.tar.lz
nixlib-845b56d25af40d90e3cd6ec4d60c6b3f091c7588.tar.xz
nixlib-845b56d25af40d90e3cd6ec4d60c6b3f091c7588.tar.zst
nixlib-845b56d25af40d90e3cd6ec4d60c6b3f091c7588.zip
Initial support for cross-compiling ghc
Diffstat (limited to 'pkgs/top-level/haskell-packages.nix')
-rw-r--r--pkgs/top-level/haskell-packages.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix
index f305c55dbfa5..a3867860799d 100644
--- a/pkgs/top-level/haskell-packages.nix
+++ b/pkgs/top-level/haskell-packages.nix
@@ -1,4 +1,4 @@
-{ pkgs, callPackage, stdenv }:
+{ pkgs, callPackage, stdenv, crossSystem }:
 
 rec {
 
@@ -50,6 +50,10 @@ rec {
       bootPkgs = packages.ghc7103;
       inherit (bootPkgs) alex happy;
     };
+    # TODO: how should we support multiple versions of this?
+    ghcCross = compiler.ghcHEAD.override {
+      cross = crossSystem;
+    };
     ghcNokinds = callPackage ../development/compilers/ghc/nokinds.nix rec {
       bootPkgs = packages.ghc784;
       inherit (bootPkgs) alex happy;
@@ -121,6 +125,7 @@ rec {
       ghc = compiler.ghcHEAD;
       compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-head.nix { };
     };
+    # TODO Support for ghcCross here
     ghcNokinds = callPackage ../development/haskell-modules {
       ghc = compiler.ghcNokinds;
       compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-nokinds.nix { };