1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/development/ocaml-modules/ocaml-lsp/default.nix
2021-08-27 13:38:37 +02:00

22 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";
};
}