depot/third_party/nixpkgs/pkgs/development/ocaml-modules/cohttp/async.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

62 lines
862 B
Nix

{ buildDunePackage
, ppx_sexp_conv
, base
, async
, async_kernel
, async_unix
, cohttp
, conduit-async
, core_unix ? null
, uri
, uri-sexp
, logs
, fmt
, sexplib0
, ipaddr
, magic-mime
, ounit
, mirage-crypto
, core
}:
buildDunePackage {
pname = "cohttp-async";
inherit (cohttp)
version
src
;
duneVersion = "3";
buildInputs = [ ppx_sexp_conv ];
propagatedBuildInputs = [
cohttp
conduit-async
async_kernel
async_unix
async
base
core_unix
magic-mime
logs
fmt
sexplib0
uri
uri-sexp
ipaddr
];
# Examples don't compile with core 0.15. See https://github.com/mirage/ocaml-cohttp/pull/864.
doCheck = false;
checkInputs = [
ounit
mirage-crypto
core
];
meta = cohttp.meta // {
description = "CoHTTP implementation for the Async concurrency library";
};
}