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-9.0.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-9.0.x.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix index 279acbeca15c..350bc4ddfe6a 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix @@ -110,7 +110,11 @@ 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-haddock-comments-plugin hls-splice-plugin hls-tactics-plugin ]; + additionalDeps = with self.haskell-language-server.scope; [ + hls-haddock-comments-plugin + (unmarkBroken hls-splice-plugin) + (unmarkBroken hls-tactics-plugin) + ]; in addBuildDepends additionalDeps (super.haskell-language-server.overrideScope (lself: lsuper: { # Needed for modern ormolu and fourmolu. # Apply this here and not in common, because other ghc versions offer different Cabal versions. @@ -119,9 +123,9 @@ self: super: { # 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); # The test suite depends on ChasingBottoms, which is broken with ghc-9.0.x. unordered-containers = dontCheck super.unordered-containers; @@ -142,6 +146,8 @@ self: super: { # https://github.com/Soostone/retry/issues/71 retry = dontCheck super.retry; + ghc-api-compat = unmarkBroken super.ghc-api-compat; + # 2021-09-18: cabal2nix does not detect the need for ghc-api-compat. hiedb = overrideCabal (old: { libraryHaskellDepends = old.libraryHaskellDepends ++ [self.ghc-api-compat]; |