summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/ocaml-modules/typeconv/109.60.01.nix (renamed from pkgs/development/ocaml-modules/typeconv/default.nix)0
-rw-r--r--pkgs/development/ocaml-modules/typeconv/112.01.01.nix20
-rw-r--r--pkgs/top-level/all-packages.nix8
3 files changed, 26 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/typeconv/default.nix b/pkgs/development/ocaml-modules/typeconv/109.60.01.nix
index 359f906ce347..359f906ce347 100644
--- a/pkgs/development/ocaml-modules/typeconv/default.nix
+++ b/pkgs/development/ocaml-modules/typeconv/109.60.01.nix
diff --git a/pkgs/development/ocaml-modules/typeconv/112.01.01.nix b/pkgs/development/ocaml-modules/typeconv/112.01.01.nix
new file mode 100644
index 000000000000..fd7ebc28b977
--- /dev/null
+++ b/pkgs/development/ocaml-modules/typeconv/112.01.01.nix
@@ -0,0 +1,20 @@
+{stdenv, fetchurl, buildOcaml}:
+
+buildOcaml rec {
+  minimumSupportedOcamlVersion = "4.02";
+
+  name = "typeconv";
+  version = "112.01.01";
+
+  src = fetchurl {
+    url = "https://github.com/janestreet/type_conv/archive/${version}.tar.gz";
+    sha256 = "dbbc33b7ab420e8442d79ba4308ea6c0c16903b310d33525be18841159aa8855";
+  };
+
+  meta = {
+    homepage = "https://github.com/janestreet/type_conv/";
+    description = "Support library for preprocessor type conversions";
+    license = stdenv.lib.licenses.asl20;
+    maintainers = with stdenv.lib.maintainers; [ z77z ericbmerritt ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 438629e93cb0..ef55701f917f 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4294,9 +4294,13 @@ let
     };
 
     typeconv_108_08_00 = callPackage ../development/ocaml-modules/typeconv/108.08.00.nix { };
+    typeconv_109_60_01 = callPackage ../development/ocaml-modules/typeconv/109.60.01.nix { };
+    typeconv_112_01_01 = callPackage ../development/ocaml-modules/typeconv/112.01.01.nix { };
     ocaml_typeconv =
-      if lib.versionOlder "4.00" ocaml_version
-      then callPackage ../development/ocaml-modules/typeconv { }
+      if lib.versionOlder "4.02" ocaml_version
+      then typeconv_112_01_01
+      else if lib.versionOlder "4.00" ocaml_version
+      then typeconv_109_60_01
       else if lib.versionOlder "3.12" ocaml_version
       then typeconv_108_08_00
       else null;