Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haskellPackages.dhall-lsp-server: use latest revision from git #292011

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 26 additions & 14 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1521,20 +1521,32 @@ self: super: {
# upstream: https://github.com/obsidiansystems/which/pull/6
which = doJailbreak super.which;

dhall-lsp-server =
# 2022-09-20: We have overridden lsp to not be the stackage version.
# dhall-lsp-server needs the older 1.4.0.0 lsp
let overridden-dhall-lsp-server = super.dhall-lsp-server.override {
lsp = dontCheck (super.lsp_1_4_0_0.override {
lsp-types = super.lsp-types_1_4_0_1;
});
};
in appendPatch (fetchpatch {
# This patch can be removed once the change question is in a tracked release.
url = "https://github.com/dhall-lang/dhall-haskell/pull/2539/commits/5dd0f0ba2d836fea3ef499c7aed04e83269c203f.patch";
sha256 = "sha256-xjVuLDBptDGfTf7MVmPb0WuuFWRLpgDYX2ybbgjAjzs=";
relative = "dhall-lsp-server";
}) overridden-dhall-lsp-server;

# 2024-02-28: The Hackage version dhall-lsp-server-1.1.3 requires
# lsp-1.4.0.0 which is hard to build with this LTS. However, the latest
# git version of dhall-lsp-server works with lsp-2.1.0.0, and only
# needs jailbreaking to build successfully.
dhall-lsp-server = lib.pipe
(super.dhall-lsp-server.overrideScope (lself: lsuper: {
lsp = doJailbreak lself.lsp_2_1_0_0; # sorted-list <0.2.2
lsp-types = lself.lsp-types_2_0_2_0;
}))
[
# Use latest main branch version of dhall-lsp-server.
(assert super.dhall-lsp-server.version == "1.1.3"; overrideSrc {
version = "unstable-2024-02-19";
src = pkgs.fetchFromGitHub {
owner = "dhall-lang";
repo = "dhall-haskell";
rev = "277d8b1b3637ba2ce125783cc1936dc9591e67a7";
hash = "sha256-YvL3XEltU9sdU45ULHeD3j1mPGZoO1J81MW7f2+10ok=";
} + "/dhall-lsp-server";
})
# New version needs an extra dependency
(addBuildDepend self.text-rope)
# bounds too strict: mtl <2.3, transformers <0.6
doJailbreak
];

# 2022-03-16: lens bound can be loosened https://github.com/ghcjs/jsaddle-dom/issues/19
jsaddle-dom = overrideCabal (old: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ extra-packages:
- language-docker == 11.0.0 # required by hadolint 2.12.0, 2022-11-16
- language-javascript == 0.7.0.0 # required by purescript
- lens-aeson < 1.2 # 2022-12-17: For aeson < 2.0 compat
- lsp == 1.4.0.0 # 2022-09-18: need for dhall-lsp-server 1.1.2
- lsp-types == 1.4.0.1 # 2022-09-18: need for dhall-lsp-server 1.1.2
- lsp == 2.1.0.0 # 2024-02-28: need for dhall-lsp-server unstable
- lsp-types == 2.0.2.0 # 2024-02-28: need for dhall-lsp-server unstable
- mmorph == 1.1.3 # Newest working version of mmorph on ghc 8.6.5. needed for hls
- network == 2.6.3.1 # required by pkgs/games/hedgewars/default.nix, 2020-11-15
- optparse-applicative < 0.16 # needed for niv-0.2.19
Expand Down
66 changes: 38 additions & 28 deletions pkgs/development/haskell-modules/hackage-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading