dhall-lsp-server: use lsp from Stackage LTS 24
(cherry picked from commit 1fe73e3aa7)
This commit is contained in:
@@ -1705,31 +1705,17 @@ with haskellLib;
|
||||
# https://github.com/NixOS/nixpkgs/issues/198495
|
||||
(dontCheckIf (pkgs.postgresqlTestHook.meta.broken) super.persistent-postgresql);
|
||||
|
||||
# Needs matching lsp-types
|
||||
# Allow lens >= 5.3
|
||||
lsp_2_4_0_0 = doDistribute (
|
||||
doJailbreak (
|
||||
super.lsp_2_4_0_0.override {
|
||||
lsp-types = self.lsp-types_2_1_1_0;
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
# Needs matching lsp-types;
|
||||
# Lift bound on sorted-list <0.2.2
|
||||
lsp_2_1_0_0 = doDistribute (
|
||||
doJailbreak (
|
||||
super.lsp_2_1_0_0.override {
|
||||
lsp-types = self.lsp-types_2_1_1_0;
|
||||
}
|
||||
)
|
||||
);
|
||||
# Lift bound on lens <5.3
|
||||
lsp-types_2_1_1_0 = doDistribute (doJailbreak super.lsp-types_2_1_1_0);
|
||||
|
||||
dhall-lsp-server =
|
||||
appendPatches
|
||||
[
|
||||
# Add support for lsp >= 2.7
|
||||
(pkgs.fetchpatch {
|
||||
name = "dhall-lsp-server-lsp-2.7.patch";
|
||||
url = "https://github.com/dhall-lang/dhall-haskell/commit/a621e1438df5865d966597e2e1b0bb37e8311447.patch";
|
||||
sha256 = "sha256-7edxNIeIM/trl2SUXybvSzkscvr1kj5+tZF50IeTOgY=";
|
||||
relative = "dhall-lsp-server";
|
||||
})
|
||||
# Fix build with text >= 2.1.2
|
||||
(pkgs.fetchpatch {
|
||||
name = "dhall-lsp-server-text-2.1.2.patch";
|
||||
url = "https://github.com/dhall-lang/dhall-haskell/commit/9f2d4d44be643229784bfc502ab49184ec82bc05.patch";
|
||||
@@ -1738,10 +1724,12 @@ with haskellLib;
|
||||
})
|
||||
]
|
||||
(
|
||||
# 2025-03-03: dhall-lsp-server-1.1.4 requires lsp-2.1.0.0
|
||||
super.dhall-lsp-server.override {
|
||||
lsp = self.lsp_2_1_0_0;
|
||||
}
|
||||
overrideCabal (drv: {
|
||||
prePatch = ''
|
||||
${drv.prePatch or ""}
|
||||
${lib.getExe' pkgs.buildPackages.dos2unix "dos2unix"} *.cabal
|
||||
'';
|
||||
}) super.dhall-lsp-server
|
||||
);
|
||||
|
||||
# Tests disabled and broken override needed because of missing lib chrome-test-utils: https://github.com/reflex-frp/reflex-dom/issues/392
|
||||
|
||||
@@ -93,9 +93,6 @@ extra-packages:
|
||||
- hlint == 3.6.* # 2025-04-14: needed for hls with ghc-lib-parser 9.6
|
||||
- hspec-megaparsec == 2.2.0 # 2023-11-18: Latest version compatible with ghc 9.0
|
||||
- language-javascript == 0.7.0.0 # required by purescript
|
||||
- lsp < 2.5 # 2024-07-08: need for koka
|
||||
- lsp == 2.1.* # 2024-02-28: need for dhall-lsp-server
|
||||
- lsp-types == 2.1.* # 2024-02-28: need for dhall-lsp-server and koka
|
||||
- network-run == 0.4.0 # 2024-10-20: for GHC 9.10/network == 3.1.*
|
||||
- ormolu == 0.5.2.0 # 2023-08-08: preserve for ghc 9.0
|
||||
- ormolu == 0.7.2.0 # 2023-11-13: for ghc-lib-parser 9.6 compat
|
||||
|
||||
-273
@@ -429994,176 +429994,6 @@ self: {
|
||||
}
|
||||
) { inherit (pkgs) rocksdb; };
|
||||
|
||||
lsp_2_1_0_0 = callPackage (
|
||||
{
|
||||
mkDerivation,
|
||||
aeson,
|
||||
async,
|
||||
attoparsec,
|
||||
base,
|
||||
bytestring,
|
||||
co-log-core,
|
||||
containers,
|
||||
data-default,
|
||||
directory,
|
||||
exceptions,
|
||||
filepath,
|
||||
hashable,
|
||||
hspec,
|
||||
hspec-discover,
|
||||
lens,
|
||||
lsp-types,
|
||||
mtl,
|
||||
prettyprinter,
|
||||
random,
|
||||
row-types,
|
||||
sorted-list,
|
||||
stm,
|
||||
temporary,
|
||||
text,
|
||||
text-rope,
|
||||
transformers,
|
||||
unliftio-core,
|
||||
unordered-containers,
|
||||
uuid,
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "lsp";
|
||||
version = "2.1.0.0";
|
||||
sha256 = "03gk98fgf32blywdds0fc5351bmcbbfrnqwlg33l2ih75nwa59y8";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
libraryHaskellDepends = [
|
||||
aeson
|
||||
async
|
||||
attoparsec
|
||||
base
|
||||
bytestring
|
||||
co-log-core
|
||||
containers
|
||||
data-default
|
||||
directory
|
||||
exceptions
|
||||
filepath
|
||||
hashable
|
||||
lens
|
||||
lsp-types
|
||||
mtl
|
||||
prettyprinter
|
||||
random
|
||||
row-types
|
||||
sorted-list
|
||||
stm
|
||||
temporary
|
||||
text
|
||||
text-rope
|
||||
transformers
|
||||
unliftio-core
|
||||
unordered-containers
|
||||
uuid
|
||||
];
|
||||
testHaskellDepends = [
|
||||
base
|
||||
containers
|
||||
hspec
|
||||
row-types
|
||||
sorted-list
|
||||
text
|
||||
text-rope
|
||||
unordered-containers
|
||||
];
|
||||
testToolDepends = [ hspec-discover ];
|
||||
description = "Haskell library for the Microsoft Language Server Protocol";
|
||||
license = lib.licenses.mit;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
}
|
||||
) { };
|
||||
|
||||
lsp_2_4_0_0 = callPackage (
|
||||
{
|
||||
mkDerivation,
|
||||
aeson,
|
||||
async,
|
||||
attoparsec,
|
||||
base,
|
||||
bytestring,
|
||||
co-log-core,
|
||||
containers,
|
||||
data-default,
|
||||
directory,
|
||||
exceptions,
|
||||
filepath,
|
||||
hashable,
|
||||
hspec,
|
||||
hspec-discover,
|
||||
lens,
|
||||
lens-aeson,
|
||||
lsp-types,
|
||||
mtl,
|
||||
prettyprinter,
|
||||
random,
|
||||
row-types,
|
||||
sorted-list,
|
||||
stm,
|
||||
text,
|
||||
text-rope,
|
||||
transformers,
|
||||
unliftio-core,
|
||||
unordered-containers,
|
||||
uuid,
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "lsp";
|
||||
version = "2.4.0.0";
|
||||
sha256 = "1ggfw2wp9g9fpg9x3kj9zh6l6p2yiw4q0v1gzxjg0mcmvp4aad8w";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
libraryHaskellDepends = [
|
||||
aeson
|
||||
async
|
||||
attoparsec
|
||||
base
|
||||
bytestring
|
||||
co-log-core
|
||||
containers
|
||||
data-default
|
||||
directory
|
||||
exceptions
|
||||
filepath
|
||||
hashable
|
||||
lens
|
||||
lens-aeson
|
||||
lsp-types
|
||||
mtl
|
||||
prettyprinter
|
||||
random
|
||||
row-types
|
||||
sorted-list
|
||||
stm
|
||||
text
|
||||
text-rope
|
||||
transformers
|
||||
unliftio-core
|
||||
unordered-containers
|
||||
uuid
|
||||
];
|
||||
testHaskellDepends = [
|
||||
base
|
||||
containers
|
||||
hspec
|
||||
row-types
|
||||
sorted-list
|
||||
text
|
||||
text-rope
|
||||
unordered-containers
|
||||
];
|
||||
testToolDepends = [ hspec-discover ];
|
||||
description = "Haskell library for the Microsoft Language Server Protocol";
|
||||
license = lib.licenses.mit;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
}
|
||||
) { };
|
||||
|
||||
lsp = callPackage (
|
||||
{
|
||||
mkDerivation,
|
||||
@@ -430427,109 +430257,6 @@ self: {
|
||||
}
|
||||
) { };
|
||||
|
||||
lsp-types_2_1_1_0 = callPackage (
|
||||
{
|
||||
mkDerivation,
|
||||
aeson,
|
||||
base,
|
||||
binary,
|
||||
containers,
|
||||
data-default,
|
||||
deepseq,
|
||||
Diff,
|
||||
directory,
|
||||
dlist,
|
||||
exceptions,
|
||||
file-embed,
|
||||
filepath,
|
||||
generic-arbitrary,
|
||||
hashable,
|
||||
hspec,
|
||||
hspec-discover,
|
||||
indexed-traversable,
|
||||
indexed-traversable-instances,
|
||||
lens,
|
||||
lens-aeson,
|
||||
mod,
|
||||
mtl,
|
||||
network-uri,
|
||||
prettyprinter,
|
||||
QuickCheck,
|
||||
quickcheck-instances,
|
||||
regex,
|
||||
row-types,
|
||||
safe,
|
||||
some,
|
||||
template-haskell,
|
||||
text,
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "lsp-types";
|
||||
version = "2.1.1.0";
|
||||
sha256 = "0gsr0v11xfav7dnq4d433y9ca0snmqaax4pp5sgmf33zl8qhi6s0";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
libraryHaskellDepends = [
|
||||
aeson
|
||||
base
|
||||
binary
|
||||
containers
|
||||
data-default
|
||||
deepseq
|
||||
Diff
|
||||
dlist
|
||||
exceptions
|
||||
file-embed
|
||||
filepath
|
||||
generic-arbitrary
|
||||
hashable
|
||||
indexed-traversable
|
||||
indexed-traversable-instances
|
||||
lens
|
||||
lens-aeson
|
||||
mod
|
||||
mtl
|
||||
network-uri
|
||||
prettyprinter
|
||||
QuickCheck
|
||||
quickcheck-instances
|
||||
row-types
|
||||
safe
|
||||
some
|
||||
template-haskell
|
||||
text
|
||||
];
|
||||
executableHaskellDepends = [
|
||||
base
|
||||
containers
|
||||
directory
|
||||
filepath
|
||||
mtl
|
||||
prettyprinter
|
||||
regex
|
||||
text
|
||||
];
|
||||
testHaskellDepends = [
|
||||
aeson
|
||||
base
|
||||
filepath
|
||||
hspec
|
||||
lens
|
||||
network-uri
|
||||
QuickCheck
|
||||
quickcheck-instances
|
||||
row-types
|
||||
text
|
||||
];
|
||||
testToolDepends = [ hspec-discover ];
|
||||
doHaddock = false;
|
||||
description = "Haskell library for the Microsoft Language Server Protocol, data types";
|
||||
license = lib.licenses.mit;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
mainProgram = "generator";
|
||||
}
|
||||
) { };
|
||||
|
||||
lsp-types = callPackage (
|
||||
{
|
||||
mkDerivation,
|
||||
|
||||
Reference in New Issue
Block a user