ocamlPackages.jsonrpc: drop unnecesary dependencies for 1.7.0

The latest version of jsonrpc does not require any dependencies apart
from dune or ocaml

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
This commit is contained in:
Rudi Grinberg 2021-08-30 01:05:16 -07:00 committed by Vincent Laporte
parent 705ab7dea9
commit 3080ccb11a

View File

@ -31,9 +31,17 @@ buildDunePackage rec {
useDune2 = true;
minimumOCamlVersion = "4.06";
buildInputs = [ yojson stdlib-shims ocaml-syntax-shims ];
buildInputs =
if lib.versionAtLeast version "1.7.0" then
[ ]
else
[ yojson stdlib-shims ocaml-syntax-shims ];
propagatedBuildInputs = [ ppx_yojson_conv_lib result ];
propagatedBuildInputs =
if lib.versionAtLeast version "1.7.0" then
[ ]
else
[ ppx_yojson_conv_lib result ];
meta = with lib; {
description = "Jsonrpc protocol implementation in OCaml";