diff options
author | Peter Simons <simons@cryp.to> | 2015-01-23 21:55:10 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-01-23 21:55:10 +0100 |
commit | 56c970ae014a9f0dac752cbf6a5a6a365ff873b7 (patch) | |
tree | 710d675fd99cba29f0fd6034a39ce18e99d3db1a /pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix | |
parent | 52f4b0d34400ed9e0da2fc18e8215d5561866e82 (diff) | |
download | nixlib-56c970ae014a9f0dac752cbf6a5a6a365ff873b7.tar nixlib-56c970ae014a9f0dac752cbf6a5a6a365ff873b7.tar.gz nixlib-56c970ae014a9f0dac752cbf6a5a6a365ff873b7.tar.bz2 nixlib-56c970ae014a9f0dac752cbf6a5a6a365ff873b7.tar.lz nixlib-56c970ae014a9f0dac752cbf6a5a6a365ff873b7.tar.xz nixlib-56c970ae014a9f0dac752cbf6a5a6a365ff873b7.tar.zst nixlib-56c970ae014a9f0dac752cbf6a5a6a365ff873b7.zip |
haskell-utf8-string: fix build with ghc-6.12.x
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.nix | 5 |
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; |