From 7963b444ca6a3d93ae05ef04cec4d31e55fa44d8 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 25 Dec 2020 20:14:42 +0100 Subject: [PATCH] haskell-ListLike: patch to fix the build with ghc-8.10.3 --- .../haskell-modules/configuration-ghc-8.10.x.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 60d3f4232464..8e53303e9feb 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix @@ -83,6 +83,12 @@ self: super: { sha256 = "0rgzrq0513nlc1vw7nw4km4bcwn4ivxcgi33jly4a7n3c1r32v1f"; }); + # Version 4.7.2 is broken by the bytestring library shipped by ghc-8.10.3. + ListLike = appendPatch super.ListLike (pkgs.fetchpatch { + url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/master/patches/ListLike-4.7.2.patch"; + sha256 = "1v392a74w0sxyn6x0bqixpmjbgla0i2b5hxzkcn1vaa3gaya7ag4"; + }); + # hnix 0.9.0 does not provide an executable for ghc < 8.10, so define completions here for now. hnix = generateOptparseApplicativeCompletion "hnix" (overrideCabal super.hnix (drv: {