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

22 lines
492 B
Nix
Raw Normal View History

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