ocamlPackages.httpcats: init at 0.1.0 (#482050)

This commit is contained in:
Ulrik Strid
2026-01-23 15:06:10 +00:00
committed by GitHub
2 changed files with 59 additions and 0 deletions
@@ -0,0 +1,57 @@
{
fetchFromGitHub,
buildDunePackage,
lib,
logs,
miou,
fmt,
h2,
h1,
ca-certs,
bstr,
tls-miou-unix,
dns-client-miou-unix,
happy-eyeballs-miou-unix,
mirage-crypto-rng-miou-unix,
alcotest,
digestif,
}:
buildDunePackage (finalAttrs: {
pname = "httpcats";
version = "0.1.0";
src = fetchFromGitHub {
owner = "robur-coop";
repo = "httpcats";
tag = "v${finalAttrs.version}";
hash = "sha256-t3gSfv73XYntle1dd4k9bv893pGStk1NHz62mAvcHAs=";
};
propagatedBuildInputs = [
h2
h1
ca-certs
bstr
tls-miou-unix
dns-client-miou-unix
happy-eyeballs-miou-unix
];
doCheck = true;
checkInputs = [
logs
fmt
mirage-crypto-rng-miou-unix
alcotest
digestif
];
meta = {
inherit (finalAttrs.src.meta) homepage;
description = "A simple HTTP client / server using h1, h2, and miou";
changelog = "https://github.com/robur-coop/httpcats/blob/${finalAttrs.src.tag}/CHANGES.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ rpqt ];
};
})
+2
View File
@@ -825,6 +825,8 @@ let
httpaf-lwt-unix = callPackage ../development/ocaml-modules/httpaf/lwt-unix.nix { };
httpcats = callPackage ../development/ocaml-modules/httpcats { };
httpun = callPackage ../development/ocaml-modules/httpun { };
httpun-eio = callPackage ../development/ocaml-modules/httpun/eio.nix { };