summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/7.2.2.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-09-10 15:36:48 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-09-15 11:37:39 -0400
commit63bf7d002c90169a6b2494a4f41b2f4f772b6aef (patch)
treefd4c9b30e594067299d14ee5c1824f4504c945a0 /pkgs/development/compilers/ghc/7.2.2.nix
parentbf7b5215001ca5adb283dfd68facc914fce96c49 (diff)
downloadnixlib-63bf7d002c90169a6b2494a4f41b2f4f772b6aef.tar
nixlib-63bf7d002c90169a6b2494a4f41b2f4f772b6aef.tar.gz
nixlib-63bf7d002c90169a6b2494a4f41b2f4f772b6aef.tar.bz2
nixlib-63bf7d002c90169a6b2494a4f41b2f4f772b6aef.tar.lz
nixlib-63bf7d002c90169a6b2494a4f41b2f4f772b6aef.tar.xz
nixlib-63bf7d002c90169a6b2494a4f41b2f4f772b6aef.tar.zst
nixlib-63bf7d002c90169a6b2494a4f41b2f4f772b6aef.zip
ghc: Clean up, and add `passthru.prefix`, in preparation for cross
No hashes should be changed.
Diffstat (limited to 'pkgs/development/compilers/ghc/7.2.2.nix')
-rw-r--r--pkgs/development/compilers/ghc/7.2.2.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/7.2.2.nix b/pkgs/development/compilers/ghc/7.2.2.nix
index 156ff56bd663..72d498166640 100644
--- a/pkgs/development/compilers/ghc/7.2.2.nix
+++ b/pkgs/development/compilers/ghc/7.2.2.nix
@@ -2,9 +2,12 @@
 
   # If enabled GHC will be build with the GPL-free but slower integer-simple
   # library instead of the faster but GPLed integer-gmp library.
-, enableIntegerSimple ? false, gmp
+, enableIntegerSimple ? false, gmp ? null
 }:
 
+# TODO(@Ericson2314): Cross compilation support
+assert stdenv.targetPlatform == stdenv.hostPlatform;
+
 stdenv.mkDerivation rec {
   version = "7.2.2";
   name = "ghc-${version}";
@@ -51,6 +54,8 @@ stdenv.mkDerivation rec {
   # that in turn causes GHCi to abort
   stripDebugFlags=["-S" "--keep-file-symbols"];
 
+  passthru = { prefix = ""; };
+
   meta = {
     homepage = http://haskell.org/ghc;
     description = "The Glasgow Haskell Compiler";