depot/pkgs/development/ocaml-modules/h2/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

53 lines
846 B
Nix

{ buildDunePackage
, fetchFromGitHub
, hpack
, angstrom
, faraday
, base64
, psq
, httpun-types
, 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
httpun-types
];
doCheck = true;
preCheck = ''
ln -s "${http2-frame-test-case}" lib_test/http2-frame-test-case
'';
checkInputs = [
alcotest
yojson
hex
];
meta = hpack.meta // {
description = "High-performance, memory-efficient, and scalable HTTP/2 library for OCaml";
};
}