summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/7.2.2.nix
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@yahoo.com>2017-09-15 12:12:47 -0400
committerGitHub <noreply@github.com>2017-09-15 12:12:47 -0400
commit2295533f43e0ca801c3a90614db889128b0314bc (patch)
tree19d9c6bd7ec7e841e2e7348084c5dbc5ce6b7693 /pkgs/development/compilers/ghc/7.2.2.nix
parenta4633ca5a352af8eb01e5db48cd597a09397a776 (diff)
parente92cda161ac9f0f0642536f079e39c482564e75e (diff)
downloadnixlib-2295533f43e0ca801c3a90614db889128b0314bc.tar
nixlib-2295533f43e0ca801c3a90614db889128b0314bc.tar.gz
nixlib-2295533f43e0ca801c3a90614db889128b0314bc.tar.bz2
nixlib-2295533f43e0ca801c3a90614db889128b0314bc.tar.lz
nixlib-2295533f43e0ca801c3a90614db889128b0314bc.tar.xz
nixlib-2295533f43e0ca801c3a90614db889128b0314bc.tar.zst
nixlib-2295533f43e0ca801c3a90614db889128b0314bc.zip
Merge pull request #29424 from obsidiansystems/slight-haskell-cleanup
haskell infra, ghc: Slight cleanup
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 a8faa8f63be1..c4733b2e3368 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";