diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2022-04-14 13:00:43 +0200 |
---|---|---|
committer | Malte Brandy <malte.brandy@maralorn.de> | 2022-04-14 13:00:43 +0200 |
commit | 3fa9ae18a01b7a87e245000bb0c25d0d011a66b9 (patch) | |
tree | 03fb1f904c411d5496d24673e68ae5b029059f1d /pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | |
parent | 82b4dabe8f9f54df50514db0375dd466c1a1fb6c (diff) | |
download | nixlib-3fa9ae18a01b7a87e245000bb0c25d0d011a66b9.tar nixlib-3fa9ae18a01b7a87e245000bb0c25d0d011a66b9.tar.gz nixlib-3fa9ae18a01b7a87e245000bb0c25d0d011a66b9.tar.bz2 nixlib-3fa9ae18a01b7a87e245000bb0c25d0d011a66b9.tar.lz nixlib-3fa9ae18a01b7a87e245000bb0c25d0d011a66b9.tar.xz nixlib-3fa9ae18a01b7a87e245000bb0c25d0d011a66b9.tar.zst nixlib-3fa9ae18a01b7a87e245000bb0c25d0d011a66b9.zip |
haskell.packages.ghc884.haskell-language-server: enable hlint and fourmolu plugins
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | 21 |
1 files changed, 13 insertions, 8 deletions
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 6b56d9eb7354..9a6e8ccab16d 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -131,18 +131,23 @@ self: super: { mime-string = disableOptimization super.mime-string; + # Older compilers need the latest ghc-lib to build this package. + hls-hlint-plugin = addBuildDepend self.ghc-lib (overrideCabal (drv: { + # Workaround for https://github.com/haskell/haskell-language-server/issues/2728 + postPatch = '' + sed -i 's/(GHC.RealSrcSpan x,/(GHC.RealSrcSpan x Nothing,/' src/Ide/Plugin/Hlint.hs + ''; + }) + super.hls-hlint-plugin); + haskell-language-server = appendConfigureFlags [ - "-f-fourmolu" "-f-stylishhaskell" "-f-brittany" - "-f-hlint" ] - (super.haskell-language-server.override { - # Not buildable on 8.8 - hls-fourmolu-plugin = null; - # https://github.com/haskell/haskell-language-server/issues/2728 - hls-hlint-plugin = null; - }); + super.haskell-language-server; + + # has a restrictive lower bound on Cabal + fourmolu = doJailbreak super.fourmolu; # OneTuple needs hashable instead of ghc-prim for GHC < 9 OneTuple = super.OneTuple.override { |