nixpkgs-suyu/pkgs/development/ocaml-modules/ocaml-lsp/default.nix
Symphorien Gibol d08e1d78e7 ocamlPackages.ocaml-lsp: wrap with dot-merlin-reader
this requires that dot-merlin-reader be built with the same ocaml version as
ocaml-lsp
2021-03-21 22:09:52 +01:00

21 lines
485 B
Nix

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