diff --git a/cohttp-bench.opam b/cohttp-bench.opam
index 4d2e1c565..23c4b5218 100644
--- a/cohttp-bench.opam
+++ b/cohttp-bench.opam
@@ -27,6 +27,7 @@ depends: [
   "core" {>= "v0.13.0"}
   "core_bench"
   "eio" {>= "0.12"}
+  "eio_main"
   "http" {= version}
   "cohttp" {= version}
   "cohttp-eio" {= version}
diff --git a/dune-project b/dune-project
index cccc68178..2a94cfb45 100644
--- a/dune-project
+++ b/dune-project
@@ -349,6 +349,7 @@
   core_bench
   (eio
    (>= 0.12))
+  eio_main
   (http
    (= :version))
   (cohttp
diff --git a/flake.nix b/flake.nix
index 24602aa12..c02dfced2 100644
--- a/flake.nix
+++ b/flake.nix
@@ -64,7 +64,7 @@
             checkInputs = [ uri fmt ounit2 alcotest cohttp-async ];
             propagatedBuildInputs = [
               ocurl http stringext cohttp-curl core core_unix
-              async_kernel async_unix 
+              async_kernel async_unix
             ];
           };
           cohttp-lwt = pkg {
@@ -103,11 +103,11 @@
           cohttp-eio = pkg {
             pname = "cohttp-eio";
             checkInputs = [
-              alcotest eio_main mdx ppx_here
-              tls-eio 
+              alcotest eio mdx ppx_here
+              tls-eio
               mirage-crypto-rng-eio
             ];
-            propagatedBuildInputs = [ cohttp eio eio_main logs uri fmt ptime http ];
+            propagatedBuildInputs = [ cohttp eio logs uri fmt ptime http ];
           };
           cohttp-mirage = pkg {
             pname = "cohttp-mirage";
@@ -119,7 +119,7 @@
           cohttp-bench = pkg {
             pname = "cohttp-bench";
             buildInputs = [
-              core core_bench eio http cohttp cohttp-eio
+              core core_bench eio eio_main http cohttp cohttp-eio
               cohttp-lwt-unix cohttp-server-lwt-unix cohttp-async
             ];
           };