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:
parent
3080ccb11a
commit
af82bb0abf
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue