2021-03-21 22:09:52 +01:00
|
|
|
{ buildDunePackage, jsonrpc, lsp, makeWrapper, dot-merlin-reader }:
|
2020-12-17 05:20:00 +01:00
|
|
|
|
2020-10-25 19:27:09 +01:00
|
|
|
buildDunePackage {
|
|
|
|
pname = "ocaml-lsp-server";
|
2021-03-21 19:04:26 +01:00
|
|
|
inherit (jsonrpc) version src;
|
2020-10-25 19:27:09 +01:00
|
|
|
useDune2 = true;
|
|
|
|
|
2021-03-21 19:04:26 +01:00
|
|
|
inherit (lsp) preBuild;
|
2020-10-25 19:27:09 +01:00
|
|
|
|
2021-03-21 19:04:26 +01:00
|
|
|
buildInputs = lsp.buildInputs ++ [ lsp ];
|
2020-10-25 19:27:09 +01:00
|
|
|
|
2021-03-21 22:09:52 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/ocamllsp --prefix PATH : ${dot-merlin-reader}/bin
|
|
|
|
'';
|
|
|
|
|
2021-03-21 19:04:26 +01:00
|
|
|
meta = jsonrpc.meta // {
|
2020-10-25 19:27:09 +01:00
|
|
|
description = "OCaml Language Server Protocol implementation";
|
|
|
|
};
|
|
|
|
}
|