Skip to content

Commit

Permalink
ocamlPackages.lsp: add version 1.22.0 for OCaml 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Jan 28, 2025
1 parent a8bd62a commit 2c22ac2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
lib,
ocaml,
version ?
if lib.versionAtLeast ocaml.version "5.2" then
if lib.versionAtLeast ocaml.version "5.3" then
"1.22.0"
else if lib.versionAtLeast ocaml.version "5.2" then
"1.21.0"
else if lib.versionAtLeast ocaml.version "4.14" then
"1.18.0"
Expand All @@ -24,6 +26,11 @@
let
params =
{
"1.22.0" = {
name = "lsp";
minimalOCamlVersion = "5.2";
sha256 = "sha256-UZ3DV30V3CIQ3vpYBIGnQ1eRGNUGk7aRuxDLyCA/tYE=";
};
"1.21.0" = {
name = "lsp";
minimalOCamlVersion = "5.2";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
ocamlformat-rpc-lib,
ocaml,
version ?
if lib.versionAtLeast ocaml.version "5.2" then
if lib.versionAtLeast ocaml.version "5.3" then
"1.22.0"
else if lib.versionAtLeast ocaml.version "5.2" then
"1.21.0"
else if lib.versionAtLeast ocaml.version "4.14" then
"1.18.0"
Expand Down

0 comments on commit 2c22ac2

Please sign in to comment.