Merge pull request #259327 from vbgl/ocaml-lwt-5.7.0

ocamlPackages.lwt: 5.6.1 → 5.7.0
This commit is contained in:
Ulrik Strid
2023-10-06 14:25:44 +02:00
committed by GitHub
4 changed files with 12 additions and 13 deletions
@@ -1,4 +1,5 @@
{ buildDunePackage, containers
, ocaml
, dune-configurator
, gen, iter, qcheck-core
, mdx
@@ -7,7 +8,9 @@
buildDunePackage {
pname = "containers-data";
inherit (containers) src version doCheck;
inherit (containers) src version;
doCheck = containers.doCheck && ocaml.meta.branch != "5.0";
buildInputs = [ dune-configurator ];
nativeCheckInputs = [ mdx.bin ];
@@ -5,8 +5,6 @@ buildDunePackage rec {
pname = "kafka";
version = "0.5";
useDune2 = true;
src = fetchurl {
url = "https://github.com/didier-wenzek/ocaml-kafka/releases/download/${version}/kafka-${version}.tbz";
sha256 = "0m9212yap0a00hd0f61i4y4fna3141p77qj3mm7jl1h4q60jdhvy";
+6 -1
View File
@@ -1,13 +1,18 @@
{ buildDunePackage
, ocaml
, lib
, kafka
, lwt
, cmdliner
}:
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
"kafka_lwt is not available for OCaml ${ocaml.version}"
buildDunePackage rec {
pname = "kafka_lwt";
inherit (kafka) version useDune2 src;
inherit (kafka) version src;
buildInputs = [ cmdliner ];
@@ -4,7 +4,7 @@
buildDunePackage rec {
pname = "lwt";
version = "5.6.1";
version = "5.7.0";
minimalOCamlVersion = "4.08";
@@ -12,16 +12,9 @@ buildDunePackage rec {
owner = "ocsigen";
repo = "lwt";
rev = version;
sha256 = "sha256-XstKs0tMwliCyXnP0Vzi5WC27HKJGnATUYtbbQmH1TE=";
hash = "sha256-o0wPK6dPdnsr/LzwcSwbIGcL85wkDjdFuEcAxuS/UEs=";
};
postPatch = lib.optionalString (lib.versionAtLeast ocaml.version "5.0") ''
substituteInPlace src/core/dune \
--replace "(libraries bytes)" ""
substituteInPlace src/unix/dune \
--replace "libraries bigarray lwt" "libraries lwt"
'';
nativeBuildInputs = [ cppo ];
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ libev ocplib-endian ];