1 { lib, fetchurl, buildDunePackage
2 , ppx_sexp_conv, base64, jsonm, re, stringext, uri-sexp
11 minimalOCamlVersion = "4.08";
14 url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-${version}.tbz";
15 hash = "sha256-s72RxwTl6lEOkkuDqy7eH8RqLM5Eiw+M70iDuaFu7d0=";
19 substituteInPlace cohttp/src/dune --replace 'bytes base64' 'base64'
22 buildInputs = [ jsonm ppx_sexp_conv ];
24 propagatedBuildInputs = [ base64 re stringext uri-sexp ];
27 checkInputs = [ fmt alcotest crowbar ];
30 description = "HTTP(S) library for Lwt, Async and Mirage";
31 license = lib.licenses.isc;
32 maintainers = [ lib.maintainers.vbgl ];
33 homepage = "https://github.com/mirage/ocaml-cohttp";