From ec08cb90367b276432f7c90d30365c4d2208d31e Mon Sep 17 00:00:00 2001
From: Peter Simons <simons@cryp.to>
Date: Thu, 25 Jun 2015 14:05:56 +0200
Subject: [PATCH] haskell-stack: disable failing test suite

Works around https://github.com/commercialhaskell/stack/issues/408 and
https://github.com/commercialhaskell/stack/issues/409. Closes
https://github.com/NixOS/nixpkgs/pull/8497.
---
 pkgs/development/haskell-modules/configuration-common.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 50bf89c3001..4954e5b01c9 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -880,4 +880,8 @@ self: super: {
   wai-session = markBroken super.wai-session;
   serversession-frontend-wai = dontDistribute super.serversession-frontend-wai;
 
+  # https://github.com/commercialhaskell/stack/issues/408
+  # https://github.com/commercialhaskell/stack/issues/409
+  stack = overrideCabal super.stack (drv: { preCheck = "export HOME=$TMPDIR"; doCheck = false; });
+
 }