From 4e3b120db1b7a8d531222031d41f7b69750d8d8b Mon Sep 17 00:00:00 2001 From: "(cdep)illabout" Date: Sat, 29 Feb 2020 17:58:42 +0900 Subject: [PATCH] spago: unbreak after update to ghc-8.8.2 --- pkgs/development/haskell-modules/configuration-nix.nix | 10 +++++++++- pkgs/development/tools/purescript/spago/spago.nix | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 27391ed8bd4..5824ce2f5e6 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; }); diff --git a/pkgs/development/tools/purescript/spago/spago.nix b/pkgs/development/tools/purescript/spago/spago.nix index 433639ff330..adf019eef57 100644 --- a/pkgs/development/tools/purescript/spago/spago.nix +++ b/pkgs/development/tools/purescript/spago/spago.nix @@ -44,5 +44,4 @@ mkDerivation { prePatch = "hpack"; homepage = "https://github.com/purescript/spago#readme"; license = stdenv.lib.licenses.bsd3; - broken = true; # Build is broken in lts-15.x. }