about summary refs log tree commit diff
path: root/pkgs/top-level/ocaml-packages.nix
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-06 20:34:17 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-07 00:00:20 +0200
commit6b52f88815a5a539e940fdb191c480aded2a400a (patch)
treeb83080d34e199a2ef57944a546c3fbc2a4367cad /pkgs/top-level/ocaml-packages.nix
parentda72539659f6847022f192a407981c783d74d876 (diff)
ocaml-ng.ocamlPackages_4_14_unsafe_string: init
Diffstat (limited to 'pkgs/top-level/ocaml-packages.nix')
-rw-r--r--pkgs/top-level/ocaml-packages.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 967d61aa0a6cd..7fb8e255198b7 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;
+  });
 }