forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / ocaml-modules / h2 / default.nix
blob12aebd57774d99e3a5b7e1cd762027d77a7ba14a
1 { buildDunePackage
2 , fetchFromGitHub
3 , hpack
4 , angstrom
5 , faraday
6 , base64
7 , psq
8 , httpun-types
9 , alcotest
10 , yojson
11 , hex
14 let
15   http2-frame-test-case = fetchFromGitHub {
16     owner = "http2jp";
17     repo = "http2-frame-test-case";
18     rev = "5c67db0d4d68e1fb7d3a241d6e01fc04d981f465";
19     sha256 = "16yyb37f8mk9saw7ndjs5is67yq7qa6b6y7k0c75ibxi4n9aw1r3";
20   };
23 buildDunePackage rec {
24   pname = "h2";
26   inherit (hpack)
27     version
28     src
29     ;
31   propagatedBuildInputs = [
32     angstrom
33     faraday
34     base64
35     psq
36     hpack
37     httpun-types
38   ];
40   doCheck = true;
41   preCheck = ''
42     ln -s "${http2-frame-test-case}" lib_test/http2-frame-test-case
43   '';
44   checkInputs = [
45     alcotest
46     yojson
47     hex
48   ];
50   meta = hpack.meta // {
51     description = "High-performance, memory-efficient, and scalable HTTP/2 library for OCaml";
52   };