diff --git a/pkgs/development/ocaml-modules/cohttp/eio.nix b/pkgs/development/ocaml-modules/cohttp/eio.nix new file mode 100644 index 000000000000..1c4155993aff --- /dev/null +++ b/pkgs/development/ocaml-modules/cohttp/eio.nix @@ -0,0 +1,46 @@ +{ + buildDunePackage, + cohttp, + eio, + fmt, + http, + logs, + ptime, + uri, + alcotest, + ca-certs, + eio_main, + tls-eio, +}: + +buildDunePackage { + pname = "cohttp-eio"; + inherit (cohttp) + version + src + ; + + minimalOCamlVersion = "5.1"; + + propagatedBuildInputs = [ + cohttp + eio + fmt + http + logs + ptime + uri + ]; + + doCheck = true; + checkInputs = [ + alcotest + ca-certs + eio_main + tls-eio + ]; + + meta = cohttp.meta // { + description = "CoHTTP implementation with eio backend"; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 30d1068f2b0a..8faf3cb3eda6 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -261,6 +261,8 @@ let cohttp-async = callPackage ../development/ocaml-modules/cohttp/async.nix { }; + cohttp-eio = callPackage ../development/ocaml-modules/cohttp/eio.nix { }; + cohttp-lwt = callPackage ../development/ocaml-modules/cohttp/lwt.nix { }; cohttp-lwt-jsoo = callPackage ../development/ocaml-modules/cohttp/lwt-jsoo.nix { };