mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
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
@ -14,11 +14,15 @@
|
|||||||
, cmdliner
|
, cmdliner
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildDunePackage {
|
buildDunePackage rec {
|
||||||
pname = "lsp";
|
pname = "lsp";
|
||||||
inherit (jsonrpc) version src;
|
inherit (jsonrpc) version src;
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
minimumOCamlVersion = "4.06";
|
minimumOCamlVersion =
|
||||||
|
if lib.versionAtLeast version "1.7.0" then
|
||||||
|
"4.12"
|
||||||
|
else
|
||||||
|
"4.06";
|
||||||
|
|
||||||
# unvendor some (not all) dependencies.
|
# unvendor some (not all) dependencies.
|
||||||
# They are vendored by upstream only because it is then easier to install
|
# They are vendored by upstream only because it is then easier to install
|
||||||
|
Loading…
Reference in New Issue
Block a user