From 56c970ae014a9f0dac752cbf6a5a6a365ff873b7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 23 Jan 2015 21:55:10 +0100 Subject: [PATCH] haskell-utf8-string: fix build with ghc-6.12.x --- .../development/haskell-modules/configuration-ghc-6.12.x.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix b/pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix index 764064ae903..bc558a7821e 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix @@ -59,7 +59,10 @@ self: super: { ChasingBottoms = dontHaddock super.ChasingBottoms; # https://github.com/glguy/utf8-string/issues/9 - utf8-string = appendConfigureFlag super.utf8-string "--ghc-option=-XUndecidableInstances"; + utf8-string = overrideCabal super.utf8-string (drv: { + configureFlags = drv.configureFlags or [] ++ ["-f-bytestring-in-base" "--ghc-option=-XUndecidableInstances"]; + preConfigure = "sed -i -e 's|base >= .* < .*,|base,|' utf8-string.cabal"; + }); # https://github.com/haskell/HTTP/issues/80 HTTP = doJailbreak super.HTTP;