Merge pull request #230070 from vbgl/ocaml-lsp-fix-propagated-inputs
ocamlPackages.lsp: fix propagatedInputs
This commit is contained in:
commit
416ffcd08f
|
@ -5,7 +5,7 @@ rec {
|
|||
pname = "linol";
|
||||
version = "2023-04-25";
|
||||
|
||||
minimalOCamlVersion = "4.08";
|
||||
minimalOCamlVersion = "4.14";
|
||||
duneVersion = "3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue