2020-11-13 07:12:34 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch, buildDunePackage
|
|
|
|
, angstrom, faraday, alcotest
|
|
|
|
}:
|
2018-07-22 07:00:45 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "httpaf";
|
2020-11-13 07:12:34 +00:00
|
|
|
version = "0.6.6";
|
|
|
|
|
|
|
|
useDune2 = true;
|
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;
|
2020-11-13 07:12:34 +00:00
|
|
|
sha256 = "065ikryv8zw9cbk6ddcjcind88ckk0inz9m3sqj9nwyfw4v4scm6";
|
2018-07-22 07:00:45 +00:00
|
|
|
};
|
|
|
|
|
2020-11-13 07:12:34 +00:00
|
|
|
patches = [
|
|
|
|
# Fix tests with angstrom ≥ 0.14
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/inhabitedtype/httpaf/commit/fc0de5f2f1bd8df953ae4d4c9a61032392436c84.patch";
|
|
|
|
sha256 = "1a8ca76ifbgyaq1bqfyq18mmxinjjparzkrr7ljbj0y1z1rl748z";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ alcotest ];
|
2018-07-22 07:00:45 +00:00
|
|
|
propagatedBuildInputs = [ angstrom faraday ];
|
2020-11-13 07:12:34 +00:00
|
|
|
doCheck = true;
|
2018-07-22 07:00:45 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A 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;
|
|
|
|
};
|
|
|
|
}
|