diff options
author | Peter Simons <simons@cryp.to> | 2021-02-05 22:37:50 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2021-02-05 23:05:20 +0100 |
commit | 48104ded6457f19c44fa6af7a8c97bb3bb9fc4f3 (patch) | |
tree | 79dd1d9d64a5dd80965325081658a2693d9d5f47 /pkgs/development/haskell-modules | |
parent | 160d44972610a023e14ca4b06427f8b7075ea4a2 (diff) | |
download | nixlib-48104ded6457f19c44fa6af7a8c97bb3bb9fc4f3.tar nixlib-48104ded6457f19c44fa6af7a8c97bb3bb9fc4f3.tar.gz nixlib-48104ded6457f19c44fa6af7a8c97bb3bb9fc4f3.tar.bz2 nixlib-48104ded6457f19c44fa6af7a8c97bb3bb9fc4f3.tar.lz nixlib-48104ded6457f19c44fa6af7a8c97bb3bb9fc4f3.tar.xz nixlib-48104ded6457f19c44fa6af7a8c97bb3bb9fc4f3.tar.zst nixlib-48104ded6457f19c44fa6af7a8c97bb3bb9fc4f3.zip |
hls-hlint-plugin: add new ghc-lib dependency when building with older compilers
Diffstat (limited to 'pkgs/development/haskell-modules')
3 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix index 27bf04b914e7..6831c7c327d7 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix @@ -88,5 +88,6 @@ self: super: { # ghc versions prior to 8.8.x needs additional dependency to compile successfully. ghc-lib-parser-ex = addBuildDepend super.ghc-lib-parser-ex self.ghc-lib-parser; + hls-hlint-plugin = addBuildDepend super.hls-hlint-plugin self.ghc-lib; } diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix index 8e87134f617c..ad6c17cbd103 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix @@ -95,5 +95,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; + # Older compilers need the latest ghc-lib to build this package. + hls-hlint-plugin = addBuildDepend super.hls-hlint-plugin self.ghc-lib; + mmorph = super.mmorph_1_1_3; } 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 d1099c56b2c8..c23d875dea38 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -123,4 +123,8 @@ self: super: { # 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; + + # Older compilers need the latest ghc-lib to build this package. + hls-hlint-plugin = addBuildDepend super.hls-hlint-plugin self.ghc-lib; + } |