diff options
author | Rudi Grinberg <me@rgrinberg.com> | 2021-08-30 01:28:10 -0700 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-09-09 07:51:55 +0200 |
commit | af82bb0abf2b16f6b077bc48633e6daf68414c31 (patch) | |
tree | f7e04dfd178865d690af893ccd5249a82fb48d4d /pkgs/development/ocaml-modules | |
parent | 3080ccb11a82776982368fb221428e039ed82ac6 (diff) | |
download | nixlib-af82bb0abf2b16f6b077bc48633e6daf68414c31.tar nixlib-af82bb0abf2b16f6b077bc48633e6daf68414c31.tar.gz nixlib-af82bb0abf2b16f6b077bc48633e6daf68414c31.tar.bz2 nixlib-af82bb0abf2b16f6b077bc48633e6daf68414c31.tar.lz nixlib-af82bb0abf2b16f6b077bc48633e6daf68414c31.tar.xz nixlib-af82bb0abf2b16f6b077bc48633e6daf68414c31.tar.zst nixlib-af82bb0abf2b16f6b077bc48633e6daf68414c31.zip |
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>
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix b/pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix index f81def4a7b40..fb38dea3d4cf 100644 --- a/pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix +++ b/pkgs/development/ocaml-modules/ocaml-lsp/lsp.nix @@ -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 |