Commit bcbaeae9 authored by Vincent Laporte's avatar Vincent Laporte Committed by Vincent Laporte
Browse files

h1: init at 1.0.0

parent 865193d0
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  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;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };