diff --git a/pkgs/development/ocaml-modules/httpun/default.nix b/pkgs/development/ocaml-modules/httpun/default.nix new file mode 100644 index 000000000000..f45ffe5eca2e --- /dev/null +++ b/pkgs/development/ocaml-modules/httpun/default.nix @@ -0,0 +1,22 @@ +{ buildDunePackage +, httpun-types +, angstrom +, bigstringaf +, faraday +, alcotest +}: + +buildDunePackage { + pname = "httpun"; + + inherit (httpun-types) src version; + + propagatedBuildInputs = [ angstrom bigstringaf faraday httpun-types ]; + + doCheck = true; + checkInputs = [ alcotest ]; + + meta = httpun-types.meta // { + description = "A high-performance, memory-efficient, and scalable HTTP library for OCaml"; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 61429ca4bfaf..c3c71efa41e0 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -691,6 +691,8 @@ let httpaf-lwt-unix = callPackage ../development/ocaml-modules/httpaf/lwt-unix.nix { }; + httpun = callPackage ../development/ocaml-modules/httpun { }; + httpun-types = callPackage ../development/ocaml-modules/httpun/types.nix { }; hxd = callPackage ../development/ocaml-modules/hxd { };