From 8ec3faac522b9538dc7a1b339ec1156b92ddf43e Mon Sep 17 00:00:00 2001 From: "(cdep)illabout" Date: Mon, 21 Jun 2021 13:33:24 +0900 Subject: [PATCH] spago: patch for newer versions library --- .../haskell-modules/configuration-nix.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index d01203e5ea36..0e364a546faa 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -577,7 +577,17 @@ self: super: builtins.intersectAttrs super { sha256 = "1hjdprm990vyxz86fgq14ajn0lkams7i00h8k2i2g1a0hjdwppq6"; }; - spagoWithOverrides = super.spago.override { + spagoWithPatches = appendPatch super.spago ( + # Spago needs a small patch to work with versions-5.0.0: + # https://github.com/purescript/spago/pull/798 + # This can probably be removed with >spago-0.20.3. + pkgs.fetchpatch { + url = "https://github.com/purescript/spago/commit/dd4bf4413d9675c1c8065d24d0ed7b345c7fa5dd.patch"; + sha256 = "1i1r3f4n9mlkckx15bfrdy5m7gjf0zx7ycwyqra6qn34zpcbzpmf"; + } + ); + + spagoWithOverrides = spagoWithPatches.override { # spago has not yet been updated for the latest dhall. dhall = self.dhall_1_38_1; };