Skip to content

Commit d921fdf

Browse files
authored
ocamlPackages.httpcats: init at 0.1.0 (NixOS#482050)
2 parents c171bfa + d383c1e commit d921fdf

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
fetchFromGitHub,
3+
buildDunePackage,
4+
lib,
5+
logs,
6+
miou,
7+
fmt,
8+
h2,
9+
h1,
10+
ca-certs,
11+
bstr,
12+
tls-miou-unix,
13+
dns-client-miou-unix,
14+
happy-eyeballs-miou-unix,
15+
mirage-crypto-rng-miou-unix,
16+
alcotest,
17+
digestif,
18+
}:
19+
20+
buildDunePackage (finalAttrs: {
21+
pname = "httpcats";
22+
version = "0.1.0";
23+
24+
src = fetchFromGitHub {
25+
owner = "robur-coop";
26+
repo = "httpcats";
27+
tag = "v${finalAttrs.version}";
28+
hash = "sha256-t3gSfv73XYntle1dd4k9bv893pGStk1NHz62mAvcHAs=";
29+
};
30+
31+
propagatedBuildInputs = [
32+
h2
33+
h1
34+
ca-certs
35+
bstr
36+
tls-miou-unix
37+
dns-client-miou-unix
38+
happy-eyeballs-miou-unix
39+
];
40+
41+
doCheck = true;
42+
checkInputs = [
43+
logs
44+
fmt
45+
mirage-crypto-rng-miou-unix
46+
alcotest
47+
digestif
48+
];
49+
50+
meta = {
51+
inherit (finalAttrs.src.meta) homepage;
52+
description = "A simple HTTP client / server using h1, h2, and miou";
53+
changelog = "https://github.com/robur-coop/httpcats/blob/${finalAttrs.src.tag}/CHANGES.md";
54+
license = lib.licenses.bsd3;
55+
maintainers = with lib.maintainers; [ rpqt ];
56+
};
57+
})

pkgs/top-level/ocaml-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,8 @@ let
825825

826826
httpaf-lwt-unix = callPackage ../development/ocaml-modules/httpaf/lwt-unix.nix { };
827827

828+
httpcats = callPackage ../development/ocaml-modules/httpcats { };
829+
828830
httpun = callPackage ../development/ocaml-modules/httpun { };
829831

830832
httpun-eio = callPackage ../development/ocaml-modules/httpun/eio.nix { };

0 commit comments

Comments
 (0)