forked from mirrors/nixpkgs
669cfc195f
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
45 lines
895 B
Nix
45 lines
895 B
Nix
{ buildDunePackage
|
|
, stdlib-shims
|
|
, ppx_yojson_conv_lib
|
|
, ocaml-syntax-shims
|
|
, jsonrpc
|
|
, omd
|
|
, octavius
|
|
, dune-build-info
|
|
, uutf
|
|
, csexp
|
|
, cmdliner
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "lsp";
|
|
inherit (jsonrpc) version src;
|
|
useDune2 = true;
|
|
minimumOCamlVersion = "4.06";
|
|
|
|
# unvendor some (not all) dependencies.
|
|
# They are vendored by upstream only because it is then easier to install
|
|
# ocaml-lsp without messing with your opam switch, but nix should prevent
|
|
# this type of problems without resorting to vendoring.
|
|
preBuild = ''
|
|
rm -r ocaml-lsp-server/vendor/{octavius,uutf,ocaml-syntax-shims,omd,cmdliner}
|
|
'';
|
|
|
|
buildInputs = [
|
|
stdlib-shims
|
|
ppx_yojson_conv_lib
|
|
ocaml-syntax-shims
|
|
octavius
|
|
uutf
|
|
csexp
|
|
dune-build-info
|
|
omd
|
|
cmdliner
|
|
jsonrpc
|
|
];
|
|
|
|
meta = jsonrpc.meta // {
|
|
description = "LSP protocol implementation in OCaml";
|
|
};
|
|
}
|