From 637bbe5529609b9c261cadaa6981440f8f9a1756 Mon Sep 17 00:00:00 2001 From: maralorn Date: Mon, 3 Apr 2023 12:19:37 +0200 Subject: [PATCH] haskellPackages.haskell-language-server: Fix build for version 1.10 --- .../haskell-modules/configuration-common.nix | 16 ++++++++-------- .../haskell-modules/configuration-nix.nix | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index e0459811babe..5a2a2a6d9abb 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -107,13 +107,6 @@ self: super: { haskell-language-server = (lib.pipe super.haskell-language-server [ dontCheck (disableCabalFlag "stan") # Sorry stan is totally unmaintained and terrible to get to run. It only works on ghc 8.8 or 8.10 anyways … - # Allow hls-call-hierarchy >= 1.2 which requires only a bound adjustment - (appendPatch (fetchpatch { - name = "hls-allow-hls-call-hierarchy-1.2.patch"; - url = "https://github.com/haskell/haskell-language-server/commit/05b248dfacc307c3397b334635cb38298aee9563.patch"; - includes = [ "haskell-language-server.cabal" ]; - sha256 = "1v0zi1lv92p6xq54yw9swzaf24dxsi9lpk10sngg3ka654ikm7j5"; - })) ]).overrideScope (lself: lsuper: { # For most ghc versions, we overrideScope Cabal in the configuration-ghc-???.nix, # because some packages, like ormolu, need a newer Cabal version. @@ -123,7 +116,7 @@ self: super: { # That means ghc-paths can just use the ghc included Cabal version, # without causing package-db incoherence and we should do that because # otherwise we have different versions of ghc-paths - # around with have the same abi-hash, which can lead to confusions and conflicts. + # around which have the same abi-hash, which can lead to confusions and conflicts. ghc-paths = lsuper.ghc-paths.override { Cabal = null; }; }); @@ -133,6 +126,13 @@ self: super: { apply-refact = self.apply-refact_0_11_0_0; }; + hls-test-utils = appendPatch (fetchpatch { + name = "hls-test-utils-ghcide-1.10-compat.patch"; + url = "https://github.com/haskell/haskell-language-server/commit/014c8f90249f11a8dfa1286e67d452ccfb42b2d0.patch"; + relative = "hls-test-utils"; + hash = "sha256-sBuqSmgCQSgbXV6KPEZcIP09wbx81q5xjSg7/slH2HQ="; + }) super.hls-test-utils; + # For -f-auto see cabal.project in haskell-language-server. ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser (disableCabalFlag "auto" super.ghc-lib-parser-ex); diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index a8469cb8d3ed..2562565ad039 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -168,6 +168,9 @@ self: super: builtins.intersectAttrs super { # Necesssary .txt files are not included in sdist. # https://github.com/haskell/haskell-language-server/pull/2887 hls-change-type-signature-plugin + + # 2023-04-03: https://github.com/haskell/haskell-language-server/issues/3549 + hls-retrie-plugin ; ###########################################