2023-04-12 12:48:02 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage
|
2020-11-21 19:51:51 +00:00
|
|
|
, angstrom, faraday, alcotest
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "httpaf";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "0.7.1";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
minimalOCamlVersion = "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-25 03:21:06 +00:00
|
|
|
sha256 = "0zk78af3qyvf6w66mg8sxygr6ndayzqw5s3zfxibvn121xwni26z";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ angstrom faraday ];
|
2023-04-12 12:48:02 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A high-performance, memory-efficient, and scalable web server for OCaml";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|