diff --git a/pkgs/development/ocaml-modules/dream/httpaf.nix b/pkgs/development/ocaml-modules/dream/httpaf.nix new file mode 100644 index 000000000000..6ba186bceb7a --- /dev/null +++ b/pkgs/development/ocaml-modules/dream/httpaf.nix @@ -0,0 +1,23 @@ +{ + lib, + buildDunePackage, + dream-pure, + lwt_ppx, + httpun-ws, +}: + +buildDunePackage { + pname = "dream-httpaf"; + + inherit (dream-pure) version src; + + buildInputs = [ lwt_ppx ]; + propagatedBuildInputs = [ + dream-pure + httpun-ws + ]; + + meta = dream-pure.meta // { + description = "Shared http/af stack for Dream (server) and Hyper (client)"; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 89ff519e88a9..4418bb88d782 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -383,6 +383,8 @@ let dot-merlin-reader = callPackage ../development/tools/ocaml/merlin/dot-merlin-reader.nix { }; + dream-httpaf = callPackage ../development/ocaml-modules/dream/httpaf.nix { }; + dream-pure = callPackage ../development/ocaml-modules/dream/pure.nix { }; dscheck = callPackage ../development/ocaml-modules/dscheck { };