From b2c43483b0a4d2bbd1e4167c5221a3e05dfd004e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 24 Sep 2019 17:55:06 +0200 Subject: [PATCH] haskell-hpack: patch the build to make it succeed with ghc-8.8.1 --- pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix index a233185cf4b..c3d5c7a1510 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -166,7 +166,10 @@ self: super: { aeson-diff = doJailbreak super.aeson-diff; # https://github.com/sol/hpack/issues/371 - hpack = markBrokenVersion "0.32.0" super.hpack; + hpack = appendPatch super.hpack (pkgs.fetchpatch { + url = "https://gitlab.haskell.org/ghc/head.hackage/raw/master/patches/hpack-0.32.0.patch"; + sha256 = "11ccl9f7vwbf5cpzknlyvrwgkzpajk4vq9jk9yb5f9la9ggwb244"; + }); # Upstream ships a broken Setup.hs file. csv = overrideCabal super.csv (drv: { prePatch = "rm Setup.hs"; });