about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2022-04-24 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2022-04-26 22:01:24 +0200
commitc0b6df2b86417b8e41c533bf7a71257e95648448 (patch)
treeaf4148dc5e0df8446694113dabe9b3261de8a048 /pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix
parent5063e680eb6217eb3274b76d6cefc923c5703952 (diff)
ocamlPackages.ocaml-lsp: update
4.14 version is untested as ppxlib does not compile
Diffstat (limited to 'pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix')
-rw-r--r--pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix b/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix
index 4f192fe20ecb4..2e6802a504266 100644
--- a/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix
+++ b/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix
@@ -10,10 +10,14 @@
 }:
 
 let params =
-  if lib.versionAtLeast ocaml.version "4.13"
+  if lib.versionAtLeast ocaml.version "4.14"
   then {
-    version = "1.10.3";
-    sha256 = "sha256-o6wQc7Byi5T0vbARF3LAq69/9wMkOZRQ6rcVa/rBUfE=";
+    version = "1.11.3";
+    sha256 = "sha256-KlMFh05O04I0Xil2B+nL2hUxZw0jaDMUnI23oUwGyhs=";
+  } else if lib.versionAtLeast ocaml.version "4.13"
+  then {
+    version = "1.10.5";
+    sha256 = "sha256-TeJS6t1ruWhWPvWNatrnSUWI6T17XKiosHLYizBDDcw=";
   } else if lib.versionAtLeast ocaml.version "4.12"
   then {
     version = "1.9.0";
@@ -32,7 +36,7 @@ buildDunePackage rec {
     inherit (params) sha256;
   };
 
-  useDune2 = true;
+  duneVersion = if lib.versionAtLeast version "1.10.0" then "3" else "2";
   minimalOCamlVersion = "4.06";
 
   buildInputs =