ocamlPackages.lwt: fix for OCaml 5.0

This commit is contained in:
Vincent Laporte 2023-05-26 08:38:20 +02:00
parent 67a752bf71
commit ffcfca42e4
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -16,6 +16,8 @@ buildDunePackage rec {
};
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"
'';