2024-05-24 00:43:14 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildDunePackage,
|
2023-12-15 05:30:34 +00:00
|
|
|
angstrom,
|
|
|
|
faraday,
|
|
|
|
result,
|
|
|
|
alcotest,
|
2020-11-13 07:12:34 +00:00
|
|
|
}:
|
2018-07-22 07:00:45 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "httpaf";
|
2022-01-23 20:24:16 +00:00
|
|
|
version = "0.7.1";
|
2020-11-13 07:12:34 +00:00
|
|
|
|
2023-04-09 10:08:42 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2018-07-22 07:00:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inhabitedtype";
|
2018-11-05 10:21:46 +00:00
|
|
|
repo = pname;
|
2018-07-22 07:00:45 +00:00
|
|
|
rev = version;
|
2022-01-23 20:24:16 +00:00
|
|
|
sha256 = "0zk78af3qyvf6w66mg8sxygr6ndayzqw5s3zfxibvn121xwni26z";
|
2018-07-22 07:00:45 +00:00
|
|
|
};
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2023-12-15 05:30:34 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
angstrom
|
|
|
|
faraday
|
|
|
|
result
|
|
|
|
];
|
2023-04-09 10:08:42 +00:00
|
|
|
doCheck = true;
|
2018-07-22 07:00:45 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "High-performance, memory-efficient, and scalable web server for OCaml";
|
2019-10-11 06:02:21 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2018-07-22 07:00:45 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|