about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
author(cdep)illabout <cdep.illabout@gmail.com>2020-02-29 17:58:42 +0900
committerPeter Simons <simons@cryp.to>2020-03-06 22:15:12 +0100
commit4e3b120db1b7a8d531222031d41f7b69750d8d8b (patch)
tree7f63cab003566dd9fdbc0f0560fa73844c4397dd /pkgs/development/haskell-modules
parent7b6f436300ad458765c09a760d53a470449fcaf9 (diff)
downloadnixlib-4e3b120db1b7a8d531222031d41f7b69750d8d8b.tar
nixlib-4e3b120db1b7a8d531222031d41f7b69750d8d8b.tar.gz
nixlib-4e3b120db1b7a8d531222031d41f7b69750d8d8b.tar.bz2
nixlib-4e3b120db1b7a8d531222031d41f7b69750d8d8b.tar.lz
nixlib-4e3b120db1b7a8d531222031d41f7b69750d8d8b.tar.xz
nixlib-4e3b120db1b7a8d531222031d41f7b69750d8d8b.tar.zst
nixlib-4e3b120db1b7a8d531222031d41f7b69750d8d8b.zip
spago: unbreak after update to ghc-8.8.2
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index 27391ed8bd4d..5824ce2f5e6d 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -635,11 +635,19 @@ self: super: builtins.intersectAttrs super {
 
   spago =
     let
+      # Spago needs a patch for MonadFail changes.
+      # https://github.com/purescript/spago/pull/584
+      # This can probably be removed when a version after spago-0.14.0 is released.
+      spagoWithPatches = appendPatch super.spago (pkgs.fetchpatch {
+        url = "https://github.com/purescript/spago/pull/584/commits/898a8e48665e5a73ea03525ce2c973455ab9ac52.patch";
+        sha256 = "05gs1hjlcf60cr6728rhgwwgxp3ildly14v4l2lrh6ma2fljhyjy";
+      });
+
       # Spago basically compiles with LTS-14, but it requires a newer version
       # of directory.  This is to work around a bug only present on windows, so
       # we can safely jailbreak spago and use the older directory package from
       # LTS-14.
-      spagoWithOverrides = doJailbreak (super.spago.override {
+      spagoWithOverrides = doJailbreak (spagoWithPatches.override {
         # spago requires dhall-1.29.0.
         dhall = self.dhall_1_29_0;
       });