about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cohttp
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-10-29 06:24:43 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2020-10-30 20:30:56 +0100
commit8b1ceeb896fd9d77abb9751eeabaf8a50d61a168 (patch)
treec20897c60e56e68cd12f357b0c25fa92b84f4caa /pkgs/development/ocaml-modules/cohttp
parent4afd690197df232cdad74de21a4c55ec2254d8e0 (diff)
ocamlPackages.cohttp: use Dune 2
Diffstat (limited to 'pkgs/development/ocaml-modules/cohttp')
-rw-r--r--pkgs/development/ocaml-modules/cohttp/default.nix2
-rw-r--r--pkgs/development/ocaml-modules/cohttp/lwt.nix2
2 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/cohttp/default.nix b/pkgs/development/ocaml-modules/cohttp/default.nix
index 6cb802e437d7f..3fed7c55d4521 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 1f261be62022c..8357d748ce8f9 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 ];