From 54db9d427db1be8868db9ec9f5c4ee8ec10651df Mon Sep 17 00:00:00 2001
From: Peter Simons <simons@cryp.to>
Date: Mon, 18 May 2015 15:22:11 +0200
Subject: [PATCH] ghc-6.x: mark broken because of
 https://github.com/NixOS/nixpkgs/issues/7810

6.10.4 and 6.12.3 are broken because they need 6.10.2-binary for bootstrapping.
---
 pkgs/development/compilers/ghc/6.10.2-binary.nix | 10 ++++++++--
 pkgs/development/compilers/ghc/6.10.4.nix        |  1 +
 pkgs/development/compilers/ghc/6.12.3.nix        |  1 +
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/pkgs/development/compilers/ghc/6.10.2-binary.nix b/pkgs/development/compilers/ghc/6.10.2-binary.nix
index 1e755ab6c0cc..3a649c2420a9 100644
--- a/pkgs/development/compilers/ghc/6.10.2-binary.nix
+++ b/pkgs/development/compilers/ghc/6.10.2-binary.nix
@@ -97,6 +97,12 @@ stdenv.mkDerivation rec {
         [ $(./main) == "yes" ]
       '';
 
-  meta.license = stdenv.lib.licenses.bsd3;
-  meta.platforms = ["x86_64-linux" "i686-linux"];
+  meta = {
+    homepage = "http://haskell.org/ghc";
+    description = "The Glasgow Haskell Compiler";
+    license = stdenv.lib.licenses.bsd3;
+    platforms = ["x86_64-linux" "i686-linux"];
+    broken = true;              # https://github.com/NixOS/nixpkgs/issues/7810
+  };
+
 }
diff --git a/pkgs/development/compilers/ghc/6.10.4.nix b/pkgs/development/compilers/ghc/6.10.4.nix
index d8157673fbc3..0df0ef27ca04 100644
--- a/pkgs/development/compilers/ghc/6.10.4.nix
+++ b/pkgs/development/compilers/ghc/6.10.4.nix
@@ -25,5 +25,6 @@ stdenv.mkDerivation rec {
     description = "The Glasgow Haskell Compiler";
     platforms = ["x86_64-linux" "i686-linux"];  # Darwin is unsupported.
     inherit (ghc.meta) license;
+    broken = true;              # https://github.com/NixOS/nixpkgs/issues/7810
   };
 }
diff --git a/pkgs/development/compilers/ghc/6.12.3.nix b/pkgs/development/compilers/ghc/6.12.3.nix
index f6beaf3a0067..499f1db79bac 100644
--- a/pkgs/development/compilers/ghc/6.12.3.nix
+++ b/pkgs/development/compilers/ghc/6.12.3.nix
@@ -39,5 +39,6 @@ stdenv.mkDerivation rec {
     maintainers = with stdenv.lib.maintainers; [ marcweber andres simons ];
     platforms = ["x86_64-linux" "i686-linux"];  # Darwin is unsupported.
     inherit (ghc.meta) license;
+    broken = true;              # https://github.com/NixOS/nixpkgs/issues/7810
   };
 }