diff options
author | Peter Simons <simons@cryp.to> | 2021-02-26 21:37:22 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2021-02-26 21:37:22 +0100 |
commit | 09dd4a7ea0af7ad172dd7c79d586b9072be939de (patch) | |
tree | f5f2130dbfa00f91c23bfabc7addfb53993bd3c9 /pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix | |
parent | 4e328c8c305ccf945ed60072fc10a4a0a5b4375d (diff) | |
download | nixpkgs-09dd4a7ea0af7ad172dd7c79d586b9072be939de.tar nixpkgs-09dd4a7ea0af7ad172dd7c79d586b9072be939de.tar.gz nixpkgs-09dd4a7ea0af7ad172dd7c79d586b9072be939de.tar.bz2 nixpkgs-09dd4a7ea0af7ad172dd7c79d586b9072be939de.tar.lz nixpkgs-09dd4a7ea0af7ad172dd7c79d586b9072be939de.tar.xz nixpkgs-09dd4a7ea0af7ad172dd7c79d586b9072be939de.tar.zst nixpkgs-09dd4a7ea0af7ad172dd7c79d586b9072be939de.zip |
cabal-install: fix build with ghc-9.0.x
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix index 55b1d8c9678..932441f7810 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix @@ -43,19 +43,12 @@ self: super: { unix = null; xhtml = null; - # Take the 3.4.x release candidate. - cabal-install = assert super.cabal-install.version == "3.2.0.0"; - overrideCabal (doJailbreak super.cabal-install) (drv: { - postUnpack = "sourceRoot+=/cabal-install; echo source root reset to $sourceRoot"; - version = "cabal-install-3.4.0.0-rc4"; - editedCabalFile = null; - src = pkgs.fetchgit { - url = "git://github.com/haskell/cabal.git"; - rev = "cabal-install-3.4.0.0-rc4"; - sha256 = "049hllk1d8jid9yg70hmcsdgb0n7hm24p39vavllaahfb0qfimrk"; - }; - executableHaskellDepends = drv.executableHaskellDepends ++ [ self.regex-base self.regex-posix ]; - }); + # Build cabal-install with the compiler's native Cabal. + cabal-install = (doJailbreak super.cabal-install).override { + # Use dontCheck to break test dependency cycles + edit-distance = dontCheck (super.edit-distance.override { random = super.random_1_2_0; }); + random = super.random_1_2_0; + }; # Jailbreaks & Version Updates async = doJailbreak super.async; |