diff options
Diffstat (limited to 'pkgs/development/ocaml-modules/paf/cohttp.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/paf/cohttp.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/paf/cohttp.nix b/pkgs/development/ocaml-modules/paf/cohttp.nix new file mode 100644 index 0000000000000..3ea55b8e71bbf --- /dev/null +++ b/pkgs/development/ocaml-modules/paf/cohttp.nix @@ -0,0 +1,51 @@ +{ lib +, buildDunePackage +, paf +, cohttp-lwt +, domain-name +, httpaf +, ipaddr +, alcotest-lwt +, fmt +, logs +, mirage-crypto-rng +, mirage-time-unix +, tcpip +, uri +, lwt +}: + +buildDunePackage { + pname = "paf-cohttp"; + + inherit (paf) + version + src + useDune2 + minimumOCamlVersion + ; + + propagatedBuildInputs = [ + paf + cohttp-lwt + domain-name + httpaf + ipaddr + ]; + + doCheck = true; + checkInputs = [ + alcotest-lwt + fmt + logs + mirage-crypto-rng + mirage-time-unix + tcpip + uri + lwt + ]; + + meta = paf.meta // { + description = "A CoHTTP client with its HTTP/AF implementation"; + }; +} |