diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2023-05-26 08:38:15 +0200 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-05-31 04:03:19 +0000 |
commit | 75b9ef08a341103d1f12e5c98b4ad9d31a4bb810 (patch) | |
tree | 84934ed69c71cff685ce2c742174c8a9b3011214 | |
parent | 8c5f01ab09866caa80e2876c9dfd922100984c7e (diff) |
ocamlPackages.ocplib-endian: fix for OCaml 5.0
(cherry picked from commit 67a752bf71dc9805a5ed5138fa63184873f20ffe)
-rw-r--r-- | pkgs/development/ocaml-modules/ocplib-endian/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/ocplib-endian/default.nix b/pkgs/development/ocaml-modules/ocplib-endian/default.nix index 285e8de84b397..c7fa14a291d71 100644 --- a/pkgs/development/ocaml-modules/ocplib-endian/default.nix +++ b/pkgs/development/ocaml-modules/ocplib-endian/default.nix @@ -13,7 +13,8 @@ buildDunePackage rec { postPatch = lib.optionalString (lib.versionAtLeast ocaml.version "5.0") '' substituteInPlace src/dune \ - --replace "libraries ocplib_endian bigarray" "libraries ocplib_endian" + --replace "(libraries bytes)" "" \ + --replace "libraries ocplib_endian bigarray bytes" "libraries ocplib_endian" ''; minimalOCamlVersion = "4.03"; |