Skip to content

Commit bcbaeae

Browse files
committed
h1: init at 1.0.0
1 parent 865193d commit bcbaeae

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
fetchurl,
5+
angstrom,
6+
bigstringaf,
7+
faraday,
8+
httpun-types,
9+
alcotest,
10+
version ? "1.0.0",
11+
}:
12+
13+
buildDunePackage {
14+
inherit version;
15+
16+
pname = "h1";
17+
18+
src = fetchurl {
19+
url = "https://github.com/robur-coop/ocaml-h1/releases/download/v${version}/h1-${version}.tbz";
20+
hash = "sha256-uFHRcNmfHiFmdMAMKiS5KilIwMylf/AoJCfxllrIvRM=";
21+
};
22+
23+
propagatedBuildInputs = [
24+
angstrom
25+
bigstringaf
26+
faraday
27+
httpun-types
28+
];
29+
30+
doCheck = true;
31+
checkInputs = [
32+
alcotest
33+
];
34+
35+
meta = {
36+
description = "A high-performance, memory-efficient, and scalable web server for OCaml";
37+
homepage = "https://github.com/robur-coop/ocaml-h1";
38+
maintainers = [ lib.maintainers.vbgl ];
39+
license = lib.licenses.bsd3;
40+
};
41+
}

pkgs/top-level/ocaml-packages.nix

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

685685
### H ###
686686

687+
h1 = callPackage ../development/ocaml-modules/h1 { };
688+
687689
h2 = callPackage ../development/ocaml-modules/h2 { };
688690

689691
h2-eio = callPackage ../development/ocaml-modules/h2/eio.nix { };

0 commit comments

Comments
 (0)