push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
{
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
;
minimalOCamlVersion = "4.14";
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";
};
}

View File

@@ -0,0 +1,56 @@
{
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";
};
}

View File

@@ -0,0 +1,39 @@
{
buildDunePackage,
cohttp,
cohttp-lwt,
logs,
lwt,
js_of_ocaml,
js_of_ocaml-ppx,
js_of_ocaml-lwt,
nodejs,
lwt_ppx,
}:
buildDunePackage {
pname = "cohttp-lwt-jsoo";
inherit (cohttp-lwt) version src;
duneVersion = "3";
propagatedBuildInputs = [
cohttp
cohttp-lwt
logs
lwt
js_of_ocaml
js_of_ocaml-ppx
js_of_ocaml-lwt
];
doCheck = true;
checkInputs = [
nodejs
lwt_ppx
];
meta = cohttp-lwt.meta // {
description = "CoHTTP implementation for the Js_of_ocaml JavaScript compiler";
};
}

View File

@@ -0,0 +1,46 @@
{
buildDunePackage,
cohttp-lwt,
conduit-lwt-unix,
conduit-lwt,
ppx_sexp_conv,
cmdliner,
fmt,
logs,
magic-mime,
ounit,
cacert,
}:
buildDunePackage {
pname = "cohttp-lwt-unix";
inherit (cohttp-lwt) version src;
duneVersion = "3";
buildInputs = [
cmdliner
ppx_sexp_conv
];
propagatedBuildInputs = [
cohttp-lwt
conduit-lwt
conduit-lwt-unix
fmt
logs
magic-mime
];
# TODO(@sternenseemann): fail for unknown reason
# https://github.com/mirage/ocaml-cohttp/issues/675#issuecomment-830692742
doCheck = false;
checkInputs = [
ounit
cacert
];
meta = cohttp-lwt.meta // {
description = "CoHTTP implementation for Unix and Windows using Lwt";
};
}

View File

@@ -0,0 +1,33 @@
{
buildDunePackage,
cohttp,
lwt,
uri,
ppx_sexp_conv,
logs,
sexplib0,
}:
buildDunePackage {
pname = "cohttp-lwt";
inherit (cohttp)
version
src
;
duneVersion = "3";
buildInputs = [ ppx_sexp_conv ];
propagatedBuildInputs = [
cohttp
lwt
logs
sexplib0
uri
];
meta = cohttp.meta // {
description = "CoHTTP implementation using the Lwt concurrency library";
};
}

View File

@@ -0,0 +1,16 @@
{ buildDunePackage, cohttp }:
buildDunePackage {
pname = "cohttp-top";
inherit (cohttp) version src;
duneVersion = "3";
propagatedBuildInputs = [ cohttp ];
doCheck = true;
meta = cohttp.meta // {
description = "CoHTTP toplevel pretty printers for HTTP types";
};
}