ocamlPackages.lwt: 5.6.1 → 5.7.0

This commit is contained in:
Vincent Laporte
2023-10-06 08:11:13 +02:00
parent bbb8c88974
commit fa23afc15e
@@ -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 ];