nixpkgs-suyu/pkgs/development/ocaml-modules/ocaml-lsp/default.nix

22 lines
485 B
Nix
Raw Normal View History

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