From f2a896ee9866cc77bd3ad9fe3f1e91bbfc7fd68e Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 28 Dec 2021 12:07:29 +0100 Subject: [PATCH] haskell.packages.ghc902.hie-bios: patch for breaking change in ghc --- .../development/haskell-modules/configuration-common.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index e8ca545e6cd5..adaead936655 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2254,4 +2254,13 @@ self: super: { sdp4unordered = disableLibraryProfiling super.sdp4unordered; sdp4vector = disableLibraryProfiling super.sdp4vector; + hie-bios = appendPatches [ + # Accounts for a breaking change in GHC 9.0.2 via CPP + (pkgs.fetchpatch { + name = "hie-bios-ghc-9.0.2-compat.patch"; + url = "https://github.com/haskell/hie-bios/commit/da0cb23384cc6e9b393792f8f25a3c174a4edafa.patch"; + sha256 = "1qj67s93h6pxvdapw1sxy6izwp5y8vjaw67gw3lsnj8gs14fqq4h"; + }) + ] super.hie-bios; + } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super