From 7e69dfd3c0c4ce81613a6a3b28f31ac03b31a464 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 24 Sep 2024 20:33:39 +0200 Subject: [PATCH] ocamlPackages.httpun: init at 0.2.0 --- .../ocaml-modules/httpun/default.nix | 22 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/ocaml-modules/httpun/default.nix 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 { };