From 6b52f88815a5a539e940fdb191c480aded2a400a Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 6 Mar 2023 20:34:17 +0200 Subject: [PATCH] ocaml-ng.ocamlPackages_4_14_unsafe_string: init --- pkgs/top-level/ocaml-packages.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 967d61aa0a6c..7fb8e255198b 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1692,4 +1692,10 @@ in let inherit (pkgs) callPackage; in rec ocamlPackages_latest = ocamlPackages_5_0; ocamlPackages = ocamlPackages_4_14; + + # We still have packages that rely on unsafe-string, which is deprecated in OCaml 4.06.0. + # Below are aliases for porting them to the latest versions of the OCaml 4 series. + ocamlPackages_4_14_unsafe_string = mkOcamlPackages (callPackage ../development/compilers/ocaml/4.14.nix { + unsafeStringSupport = true; + }); }