about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorRudi Grinberg <me@rgrinberg.com>2021-08-30 01:05:16 -0700
committerVincent Laporte <vbgl@users.noreply.github.com>2021-09-09 07:51:55 +0200
commit3080ccb11a82776982368fb221428e039ed82ac6 (patch)
tree7f1611c66bb30efdc5f98fa632f0df8c59be5dad /pkgs/development/ocaml-modules
parent705ab7dea9f4e3aa8033fd527d253542c612a7b7 (diff)
downloadnixlib-3080ccb11a82776982368fb221428e039ed82ac6.tar
nixlib-3080ccb11a82776982368fb221428e039ed82ac6.tar.gz
nixlib-3080ccb11a82776982368fb221428e039ed82ac6.tar.bz2
nixlib-3080ccb11a82776982368fb221428e039ed82ac6.tar.lz
nixlib-3080ccb11a82776982368fb221428e039ed82ac6.tar.xz
nixlib-3080ccb11a82776982368fb221428e039ed82ac6.tar.zst
nixlib-3080ccb11a82776982368fb221428e039ed82ac6.zip
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>
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix b/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix
index a1d457f8775f..a6867aac63ad 100644
--- a/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix
+++ b/pkgs/development/ocaml-modules/ocaml-lsp/jsonrpc.nix
@@ -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";