58849dfc4f
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
21 lines
492 B
Nix
21 lines
492 B
Nix
{ buildDunePackage, jsonrpc, lsp, re, makeWrapper, dot-merlin-reader }:
|
|
|
|
buildDunePackage {
|
|
pname = "ocaml-lsp-server";
|
|
inherit (jsonrpc) version src;
|
|
useDune2 = true;
|
|
|
|
inherit (lsp) preBuild;
|
|
|
|
buildInputs = lsp.buildInputs ++ [ lsp re ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/ocamllsp --prefix PATH : ${dot-merlin-reader}/bin
|
|
'';
|
|
|
|
meta = jsonrpc.meta // {
|
|
description = "OCaml Language Server Protocol implementation";
|
|
};
|
|
}
|