summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2019-08-28 15:45:06 +0000
committerPeter Simons <simons@cryp.to>2019-08-28 15:50:33 +0000
commit2e08ac73ca0098bf6dead801631c909d3a6b8e85 (patch)
tree0ac7fe429f759d38f718cc43942bf5da24570ae9 /pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
parent374a39e598815c27d470f4ff57496eccb521f3de (diff)
downloadnixpkgs-2e08ac73ca0098bf6dead801631c909d3a6b8e85.tar
nixpkgs-2e08ac73ca0098bf6dead801631c909d3a6b8e85.tar.gz
nixpkgs-2e08ac73ca0098bf6dead801631c909d3a6b8e85.tar.bz2
nixpkgs-2e08ac73ca0098bf6dead801631c909d3a6b8e85.tar.lz
nixpkgs-2e08ac73ca0098bf6dead801631c909d3a6b8e85.tar.xz
nixpkgs-2e08ac73ca0098bf6dead801631c909d3a6b8e85.tar.zst
nixpkgs-2e08ac73ca0098bf6dead801631c909d3a6b8e85.zip
cabal-install: override native Cabal version on older compilers
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
index 4e70648b71a..4addc834040 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
@@ -41,6 +41,9 @@ self: super: {
   unix = null;
   xhtml = null;
 
+  # Needs Cabal 3.0.x.
+  cabal-install = super.cabal-install.overrideScope (self: super: { Cabal = self.Cabal_3_0_0_0; });
+
   # https://github.com/tibbe/unordered-containers/issues/214
   unordered-containers = dontCheck super.unordered-containers;