summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix5
1 files changed, 4 insertions, 1 deletions
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 764064ae903e..bc558a7821e5 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;