summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-07-13 11:09:06 +0000
committerPeter Simons <simons@cryp.to>2011-07-13 11:09:06 +0000
commitce11df9d807f2a1ae60b3829df4e6415597dc675 (patch)
tree0d652b5eed23f09a14391f515d817e366a3baa0e /pkgs/development/compilers/ghc
parent14c9d261120ded1309803d289e68f12d432ebe2c (diff)
downloadnixpkgs-ce11df9d807f2a1ae60b3829df4e6415597dc675.tar
nixpkgs-ce11df9d807f2a1ae60b3829df4e6415597dc675.tar.gz
nixpkgs-ce11df9d807f2a1ae60b3829df4e6415597dc675.tar.bz2
nixpkgs-ce11df9d807f2a1ae60b3829df4e6415597dc675.tar.lz
nixpkgs-ce11df9d807f2a1ae60b3829df4e6415597dc675.tar.xz
nixpkgs-ce11df9d807f2a1ae60b3829df4e6415597dc675.tar.zst
nixpkgs-ce11df9d807f2a1ae60b3829df4e6415597dc675.zip
ghc-6.10.1-binary: blind attempt to bootstrap GHC on x86_64-darwin with the i686 version of this compiler
I have no idea whether that's going to work, and I can't test it for
lack of access to a MacOS X machine, but think chances are pretty good
that this is going to succeed.

svn path=/nixpkgs/trunk/; revision=27751
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/6.10.1-binary.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/compilers/ghc/6.10.1-binary.nix b/pkgs/development/compilers/ghc/6.10.1-binary.nix
index 459a1b94724..7052d6211bb 100644
--- a/pkgs/development/compilers/ghc/6.10.1-binary.nix
+++ b/pkgs/development/compilers/ghc/6.10.1-binary.nix
@@ -1,6 +1,6 @@
 {stdenv, fetchurl, perl, libedit, ncurses, gmp}:
 
-assert stdenv.system == "i686-darwin" || stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux";
+assert stdenv.system == "x86_64-darwin" || stdenv.system == "i686-darwin" || stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux";
 
 stdenv.mkDerivation rec {
   version = "6.10.1";
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
         url = "http://haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-unknown-linux.tar.bz2";
         sha256 = "14jvvn333i36wm7mmvi47jr93f5hxrw1h2dpjvqql0rp00svhzzg";
       }
-    else if stdenv.system == "i686-darwin" then
+    else if (stdenv.system == "i686-darwin" || stdenv.system == "x86_64-darwin") then
       fetchurl {
         # Idem.
         url = "http://haskell.org/ghc/dist/${version}/maeder/ghc-${version}-i386-apple-darwin.tar.bz2";
@@ -100,5 +100,10 @@ stdenv.mkDerivation rec {
         [ $(./main) == "yes" ]
       '';
 
-  meta.platforms = [ "i686-darwin" "x86_64-linux" "i686-linux"] ;
+  meta = {
+    homepage = "http://haskell.org/ghc";
+    description = "The Glasgow Haskell Compiler";
+    maintainers = [ stdenv.lib.maintainers.simons ];
+    platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
+  };
 }