mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
23 lines
571 B
Nix
23 lines
571 B
Nix
{ lib, buildDunePackage, jsonrpc, lsp, re, makeWrapper, dot-merlin-reader, spawn }:
|
|
|
|
buildDunePackage {
|
|
pname = "ocaml-lsp-server";
|
|
inherit (jsonrpc) version src;
|
|
useDune2 = true;
|
|
|
|
inherit (lsp) preBuild;
|
|
|
|
buildInputs = lsp.buildInputs ++ [ lsp re ]
|
|
++ lib.optional (lib.versionAtLeast jsonrpc.version "1.9") spawn;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/ocamllsp --prefix PATH : ${dot-merlin-reader}/bin
|
|
'';
|
|
|
|
meta = jsonrpc.meta // {
|
|
description = "OCaml Language Server Protocol implementation";
|
|
};
|
|
}
|