ocamlPackages.lsp: fix propagatedInputs

This commit is contained in:
Vincent Laporte 2023-05-05 10:42:06 +02:00
parent 3576a3e256
commit 18f2c5f5b8
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -84,11 +84,31 @@ buildDunePackage rec {
nativeBuildInputs = lib.optional (lib.versionOlder version "1.7.0") cppo;
propagatedBuildInputs = [
csexp
jsonrpc
uutf
] ++ lib.optional (lib.versionOlder version "1.7.0") stdlib-shims;
propagatedBuildInputs =
if lib.versionAtLeast version "1.14.0" then [
jsonrpc
ppx_yojson_conv_lib
uutf
] else if lib.versionAtLeast version "1.10.0" then [
dyn
jsonrpc
ordering
ppx_yojson_conv_lib
stdune
uutf
] else if lib.versionAtLeast version "1.7.0" then [
csexp
jsonrpc
pp
ppx_yojson_conv_lib
uutf
] else [
csexp
jsonrpc
ppx_yojson_conv_lib
stdlib-shims
uutf
];
meta = jsonrpc.meta // {
description = "LSP protocol implementation in OCaml";