From 3a9a3fcc5aa7f43eba75da66cb17567323a6bba9 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 25 Jun 2026 08:13:05 +0200 Subject: [PATCH] ocamlPackages.lsp: init at 1.27.0 for OCaml 5.5 --- pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix | 9 ++++++++- pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix b/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix index 1c6bd1dcab7a..de8d03343690 100644 --- a/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix +++ b/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix @@ -9,7 +9,9 @@ lib, ocaml, version ? - if lib.versionAtLeast ocaml.version "5.4" then + if lib.versionAtLeast ocaml.version "5.5" then + "1.27.0" + else if lib.versionAtLeast ocaml.version "5.4" then "1.26.0" else if lib.versionAtLeast ocaml.version "5.3" then "1.23.1" @@ -28,6 +30,11 @@ let params = { + "1.27.0" = { + name = "lsp"; + minimalOCamlVersion = "5.3"; + sha256 = "sha256-BDrNaSP4pcuq2RVFI1cKsTlzuu72mOK1VTIT3WN5JxU="; + }; "1.26.0" = { name = "lsp"; minimalOCamlVersion = "5.3"; diff --git a/pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix b/pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix index 55ebec5fba50..660c4ff90b7a 100644 --- a/pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix +++ b/pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix @@ -25,7 +25,9 @@ ocamlformat-rpc-lib, ocaml, version ? - if lib.versionAtLeast ocaml.version "5.4" then + if lib.versionAtLeast ocaml.version "5.5" then + "1.27.0" + else if lib.versionAtLeast ocaml.version "5.4" then "1.26.0" else if lib.versionAtLeast ocaml.version "5.3" then "1.23.1"