2021-04-25 14:46:11 +00:00
|
|
|
{
|
|
|
|
buildDunePackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hpack,
|
|
|
|
angstrom,
|
|
|
|
faraday,
|
|
|
|
base64,
|
|
|
|
psq,
|
2024-09-17 15:15:13 +00:00
|
|
|
httpun-types,
|
2021-04-25 14:46:11 +00:00
|
|
|
alcotest,
|
|
|
|
yojson,
|
|
|
|
hex,
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
http2-frame-test-case = fetchFromGitHub {
|
|
|
|
owner = "http2jp";
|
|
|
|
repo = "http2-frame-test-case";
|
|
|
|
rev = "5c67db0d4d68e1fb7d3a241d6e01fc04d981f465";
|
|
|
|
sha256 = "16yyb37f8mk9saw7ndjs5is67yq7qa6b6y7k0c75ibxi4n9aw1r3";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "h2";
|
|
|
|
|
|
|
|
inherit (hpack)
|
|
|
|
version
|
|
|
|
src
|
|
|
|
;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
angstrom
|
|
|
|
faraday
|
|
|
|
base64
|
|
|
|
psq
|
|
|
|
hpack
|
2024-09-17 15:15:13 +00:00
|
|
|
httpun-types
|
2021-04-25 14:46:11 +00:00
|
|
|
];
|
|
|
|
|
2023-12-01 05:58:59 +00:00
|
|
|
doCheck = true;
|
2021-04-25 14:46:11 +00:00
|
|
|
preCheck = ''
|
|
|
|
ln -s "${http2-frame-test-case}" lib_test/http2-frame-test-case
|
|
|
|
'';
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [
|
2021-04-25 14:46:11 +00:00
|
|
|
alcotest
|
|
|
|
yojson
|
|
|
|
hex
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = hpack.meta // {
|
|
|
|
description = "High-performance, memory-efficient, and scalable HTTP/2 library for OCaml";
|
|
|
|
};
|
|
|
|
}
|