about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2020-05-01 21:22:22 +0200
committerPeter Simons <simons@cryp.to>2020-05-01 21:52:29 +0200
commitc752d37efe1755bffc19d09fdf82d3c98a12e76e (patch)
treec2bd57f786e226e6d432aba64b48b37fbb242688 /pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
parentb0c0ba6f816a65f34449a3ed013ea380e609c324 (diff)
downloadnixlib-c752d37efe1755bffc19d09fdf82d3c98a12e76e.tar
nixlib-c752d37efe1755bffc19d09fdf82d3c98a12e76e.tar.gz
nixlib-c752d37efe1755bffc19d09fdf82d3c98a12e76e.tar.bz2
nixlib-c752d37efe1755bffc19d09fdf82d3c98a12e76e.tar.lz
nixlib-c752d37efe1755bffc19d09fdf82d3c98a12e76e.tar.xz
nixlib-c752d37efe1755bffc19d09fdf82d3c98a12e76e.tar.zst
nixlib-c752d37efe1755bffc19d09fdf82d3c98a12e76e.zip
cabal-install: patch the ghc-8.10.x build to succeed
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
index 206577e3e8e0..61919055eb0a 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
@@ -42,6 +42,21 @@ self: super: {
   unix = null;
   xhtml = null;
 
+  # The proper 3.2.0.0 release does not compile with ghc-8.10.1, so we take the
+  # hitherto unreleased next version from the '3.2' branch of the upstream git
+  # repository for the time being.
+  cabal-install = assert super.cabal-install.version == "3.2.0.0";
+                  overrideCabal super.cabal-install (drv: {
+    postUnpack = "sourceRoot+=/cabal-install; echo source root reset to $sourceRoot";
+    version = "3.2.0.0-git";
+    editedCabalFile = null;
+    src = pkgs.fetchgit {
+      url = "git://github.com/haskell/cabal.git";
+      rev = "9bd4cc0591616aeae78e17167338371a2542a475";
+      sha256 = "005q1shh7vqgykkp72hhmswmrfpz761x0q0jqfnl3wqim4xd9dg0";
+    };
+  });
+
   # Deviate from Stackage LTS-15.x to fix the build.
   haddock-library = self.haddock-library_1_9_0;