Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
951 B
Nix

{
lib,
fetchurl,
buildDunePackage,
ppx_sexp_conv,
base64,
jsonm,
re,
stringext,
uri-sexp,
fmt,
alcotest,
crowbar,
}:
buildDunePackage rec {
pname = "cohttp";
version = "5.3.1";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/mirage/ocaml-cohttp/releases/download/v${version}/cohttp-${version}.tbz";
hash = "sha256-9eJz08Lyn/R71+Ftsj4fPWzQGkC+ACCJhbxDTIjUV2s=";
};
postPatch = ''
substituteInPlace cohttp/src/dune --replace 'bytes base64' 'base64'
'';
buildInputs = [
jsonm
ppx_sexp_conv
];
propagatedBuildInputs = [
base64
re
stringext
uri-sexp
];
doCheck = true;
checkInputs = [
fmt
alcotest
crowbar
];
meta = {
description = "HTTP(S) library for Lwt, Async and Mirage";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
homepage = "https://github.com/mirage/ocaml-cohttp";
};
}