From 8a559a2a08d2ff9f9944c7de240ecd21950765dd Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Tue, 17 Nov 2020 01:20:11 +0100 Subject: [PATCH] haskell.packages.ghc884.ghc-lib-parser-ex: Fix build for hls --- pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | 4 ++++ 1 file changed, 4 insertions(+) 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 e83b25659f2..546f3a053ad 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -124,4 +124,8 @@ self: super: { # This became a core library in ghc 8.10., so we don‘t have an "exception" attribute anymore. exceptions = super.exceptions_0_10_4; + + # ghc versions which don‘t match the ghc-lib-parser-ex version need the + # additional dependency to compile successfully. + ghc-lib-parser-ex = addBuildDepend super.ghc-lib-parser-ex self.ghc-lib-parser; }