mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
h1: init at 1.0.0
This commit is contained in:
committed by
Vincent Laporte
parent
865193d062
commit
bcbaeae946
41
pkgs/development/ocaml-modules/h1/default.nix
Normal file
41
pkgs/development/ocaml-modules/h1/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user