h1: init at 1.0.0

This commit is contained in:
Vincent Laporte
2025-03-04 06:49:18 +01:00
committed by Vincent Laporte
parent 865193d062
commit bcbaeae946
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
{
lib,
buildDunePackage,
fetchurl,
angstrom,
bigstringaf,
faraday,
httpun-types,
alcotest,
version ? "1.0.0",
}:
buildDunePackage {
inherit version;
pname = "h1";
src = fetchurl {
url = "https://github.com/robur-coop/ocaml-h1/releases/download/v${version}/h1-${version}.tbz";
hash = "sha256-uFHRcNmfHiFmdMAMKiS5KilIwMylf/AoJCfxllrIvRM=";
};
propagatedBuildInputs = [
angstrom
bigstringaf
faraday
httpun-types
];
doCheck = true;
checkInputs = [
alcotest
];
meta = {
description = "A high-performance, memory-efficient, and scalable web server for OCaml";
homepage = "https://github.com/robur-coop/ocaml-h1";
maintainers = [ lib.maintainers.vbgl ];
license = lib.licenses.bsd3;
};
}

View File

@@ -684,6 +684,8 @@ let
### H ###
h1 = callPackage ../development/ocaml-modules/h1 { };
h2 = callPackage ../development/ocaml-modules/h2 { };
h2-eio = callPackage ../development/ocaml-modules/h2/eio.nix { };