From 8b1ceeb896fd9d77abb9751eeabaf8a50d61a168 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 29 Oct 2020 06:24:43 +0100 Subject: [PATCH] ocamlPackages.cohttp: use Dune 2 --- pkgs/development/ocaml-modules/cohttp/default.nix | 2 ++ pkgs/development/ocaml-modules/cohttp/lwt.nix | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/cohttp/default.nix b/pkgs/development/ocaml-modules/cohttp/default.nix index 6cb802e437d7..3fed7c55d452 100644 --- a/pkgs/development/ocaml-modules/cohttp/default.nix +++ b/pkgs/development/ocaml-modules/cohttp/default.nix @@ -7,6 +7,8 @@ buildDunePackage rec { pname = "cohttp"; version = "2.5.4"; + useDune2 = true; + minimumOCamlVersion = "4.04.1"; src = fetchurl { diff --git a/pkgs/development/ocaml-modules/cohttp/lwt.nix b/pkgs/development/ocaml-modules/cohttp/lwt.nix index 1f261be62022..8357d748ce8f 100644 --- a/pkgs/development/ocaml-modules/cohttp/lwt.nix +++ b/pkgs/development/ocaml-modules/cohttp/lwt.nix @@ -8,7 +8,7 @@ else buildDunePackage { pname = "cohttp-lwt"; - inherit (cohttp) version src meta; + inherit (cohttp) version src useDune2 meta; buildInputs = [ uri ppx_sexp_conv ];