From ffcfca42e4f263af4e1281769f050e01b114fd79 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 26 May 2023 08:38:20 +0200 Subject: [PATCH] ocamlPackages.lwt: fix for OCaml 5.0 --- pkgs/development/ocaml-modules/lwt/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix index cf631fd08e41..4033336ae119 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" '';