ocamlPackages.ocaml-lsp: fix minimum ocaml version

ocaml-lsp 1.7.0 is only available for OCaml 4.12 and above. For previous
version of OCaml, an old version must be used.

1.7.0 only supports 4.12

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
This commit is contained in:
Rudi Grinberg 2021-08-30 01:28:10 -07:00 committed by Vincent Laporte
parent 3080ccb11a
commit af82bb0abf

View file

@ -14,11 +14,15 @@
, cmdliner
}:
buildDunePackage {
buildDunePackage rec {
pname = "lsp";
inherit (jsonrpc) version src;
useDune2 = true;
minimumOCamlVersion = "4.06";
minimumOCamlVersion =
if lib.versionAtLeast version "1.7.0" then
"4.12"
else
"4.06";
# unvendor some (not all) dependencies.
# They are vendored by upstream only because it is then easier to install