diff options
author | maralorn <mail@maralorn.de> | 2022-12-24 17:46:42 +0100 |
---|---|---|
committer | maralorn <mail@maralorn.de> | 2022-12-24 17:46:42 +0100 |
commit | 65d6fc555b310ea392b249a7f168f828593d7088 (patch) | |
tree | 329b670586ae10fb9f85c4bd9d9568bac0bc389a /pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix | |
parent | 302701438d50df1101ff0b861f318ad0a54b5b93 (diff) | |
download | nixlib-65d6fc555b310ea392b249a7f168f828593d7088.tar nixlib-65d6fc555b310ea392b249a7f168f828593d7088.tar.gz nixlib-65d6fc555b310ea392b249a7f168f828593d7088.tar.bz2 nixlib-65d6fc555b310ea392b249a7f168f828593d7088.tar.lz nixlib-65d6fc555b310ea392b249a7f168f828593d7088.tar.xz nixlib-65d6fc555b310ea392b249a7f168f828593d7088.tar.zst nixlib-65d6fc555b310ea392b249a7f168f828593d7088.zip |
haskell-language-server: Enable reenable dependencies for older ghcs
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 | 18 |
1 files changed, 11 insertions, 7 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 fc05da903bd9..90df495523fa 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix @@ -140,7 +140,12 @@ self: super: { haskell-language-server = let # These aren't included in hackage-packages.nix because hackage2nix is configured for GHC 9.2, under which these plugins aren't supported. # See https://github.com/NixOS/nixpkgs/pull/205902 for why we use `self.<package>.scope` - additionalDeps = with self.haskell-language-server.scope; [ hls-brittany-plugin hls-haddock-comments-plugin hls-splice-plugin hls-tactics-plugin ]; + additionalDeps = with self.haskell-language-server.scope; [ + hls-brittany-plugin + hls-haddock-comments-plugin + (unmarkBroken hls-splice-plugin) + (unmarkBroken hls-tactics-plugin) + ]; in addBuildDepends additionalDeps (super.haskell-language-server.overrideScope (lself: lsuper: { # Pick old ormolu and fourmolu because ghc-lib-parser is not compatible ormolu = doJailbreak lself.ormolu_0_1_4_1; @@ -159,20 +164,19 @@ self: super: { # additional dependency to compile successfully. ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser self.ghc-lib-parser-ex_8_10_0_24; - hls-brittany-plugin = addBuildDepends (with self.hls-brittany-plugin.scope; [ + hls-brittany-plugin = unmarkBroken (addBuildDepends (with self.hls-brittany-plugin.scope; [ brittany czipwith extra ghc-exactprint ghcide hls-plugin-api hls-test-utils lens lsp-types ]) (super.hls-brittany-plugin.overrideScope (lself: lsuper: { brittany = doJailbreak lself.brittany_0_13_1_2; - multistate = dontCheck lsuper.multistate; + multistate = unmarkBroken (dontCheck lsuper.multistate); lsp-types = doJailbreak lsuper.lsp-types; # Checks require aeson >= 2.0 - })); + }))); # This package is marked as unbuildable on GHC 9.2, so hackage2nix doesn't include any dependencies. # See https://github.com/NixOS/nixpkgs/pull/205902 for why we use `self.<package>.scope` - hls-haddock-comments-plugin = addBuildDepends (with self.hls-haddock-comments-plugin.scope; [ + hls-haddock-comments-plugin = unmarkBroken (addBuildDepends (with self.hls-haddock-comments-plugin.scope; [ ghc-exactprint ghcide hls-plugin-api hls-refactor-plugin lsp-types unordered-containers - ]) super.hls-haddock-comments-plugin; - + ]) super.hls-haddock-comments-plugin); # has a restrictive lower bound on Cabal fourmolu = doJailbreak super.fourmolu; |