ocamlPackages.httpaf: init at 0.4.1
http/af is a high-performance, memory-efficient, and scalable web server for OCaml. Homepage: https://github.com/inhabitedtype/httpaf
This commit is contained in:
parent
51d9081123
commit
1747b29a4c
33
pkgs/development/ocaml-modules/httpaf/default.nix
Normal file
33
pkgs/development/ocaml-modules/httpaf/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
|
||||
, angstrom, faraday, alcotest
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.4.1";
|
||||
name = "ocaml${ocaml.version}-httpaf-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "inhabitedtype";
|
||||
repo = "httpaf";
|
||||
rev = version;
|
||||
sha256 = "0i2r004ihj00hd97475y8nhjqjln58xx087zcjl0dfp0n7q80517";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib jbuilder alcotest ];
|
||||
propagatedBuildInputs = [ angstrom faraday ];
|
||||
|
||||
buildPhase = "dune build -p httpaf";
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = "dune runtest -p httpaf";
|
||||
|
||||
inherit (jbuilder) installPhase;
|
||||
|
||||
meta = {
|
||||
description = "A high-performance, memory-efficient, and scalable web server for OCaml";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
|
@ -319,6 +319,8 @@ let
|
|||
|
||||
hex = callPackage ../development/ocaml-modules/hex { };
|
||||
|
||||
httpaf = callPackage ../development/ocaml-modules/httpaf { };
|
||||
|
||||
inifiles = callPackage ../development/ocaml-modules/inifiles { };
|
||||
|
||||
iri = callPackage ../development/ocaml-modules/iri { };
|
||||
|
|
Loading…
Reference in a new issue