ocaml-lsp, lsp, jsonrpc: allow overriding the source globally
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
co-authored by
Sandro
parent
e6ca7b6e5b
commit
669cfc195f
@@ -0,0 +1,44 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user