ocaml-lsp, lsp, jsonrpc: allow overriding the source globally

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Antonio Nuno Monteiro
2021-03-21 12:17:08 -07:00
co-authored by Sandro
parent e6ca7b6e5b
commit 669cfc195f
4 changed files with 82 additions and 68 deletions
@@ -0,0 +1,31 @@
{ buildDunePackage
, stdlib-shims
, ppx_yojson_conv_lib
, ocaml-syntax-shims
, yojson
, result
, fetchzip
, lib
}:
buildDunePackage rec {
pname = "jsonrpc";
version = "1.4.1";
src = fetchzip {
url = "https://github.com/ocaml/ocaml-lsp/releases/download/${version}/jsonrpc-${version}.tbz";
sha256 = "0hzpw17qfhb0cxgwah1fv4k300r363dy1kv0977anl44dlanx1v5";
};
useDune2 = true;
minimumOCamlVersion = "4.06";
buildInputs = [ yojson stdlib-shims ocaml-syntax-shims ppx_yojson_conv_lib result ];
meta = with lib; {
description = "Jsonrpc protocol implementation in OCaml";
license = licenses.isc;
platforms = platforms.unix;
maintainers = with maintainers; [ symphorien marsam ];
};
}