3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/ocaml-lsp/default.nix

23 lines
571 B
Nix
Raw Normal View History

2021-12-07 20:41:08 +00:00
{ lib, buildDunePackage, jsonrpc, lsp, re, makeWrapper, dot-merlin-reader, spawn }:
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
2021-12-07 20:41:08 +00:00
buildInputs = lsp.buildInputs ++ [ lsp re ]
++ lib.optional (lib.versionAtLeast jsonrpc.version "1.9") spawn;
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";
};
}