summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2023-05-26 08:38:20 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2023-05-31 04:03:19 +0000
commit91f654d57cbd42ccf7f1038a43e2aa60d5e26133 (patch)
tree8d9d86db5d52f974102f78e84f2958919ca2dbf9
parent75b9ef08a341103d1f12e5c98b4ad9d31a4bb810 (diff)
ocamlPackages.lwt: fix for OCaml 5.0
(cherry picked from commit ffcfca42e4f263af4e1281769f050e01b114fd79)
-rw-r--r--pkgs/development/ocaml-modules/lwt/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix
index cf631fd08e415..4033336ae119b 100644
--- a/pkgs/development/ocaml-modules/lwt/default.nix
+++ b/pkgs/development/ocaml-modules/lwt/default.nix
@@ -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"
   '';