@@ -6,8 +6,6 @@ let
66 packageSet = self:
77 with self; let inherit (self) callPackage; in
88 {
9− ocaml_version = self.ocaml.version; #TODO: remove all mentions of ocaml_version
10−
119 callPackage = newScope self;
1210
1311 inherit ocaml;
@@ -37,7 +35,7 @@ let
3735 async_unix_p4 = callPackage ../development/ocaml-modules/async_unix { };
3836
3937 async_p4 =
40− if lib.versionOlder "4.02" ocaml_version
38+ if lib.versionOlder "4.02" ocaml.version
4139 then callPackage ../development/ocaml-modules/async { }
4240 else null;
4341
@@ -53,26 +51,26 @@ let
5351 bitstring_git = callPackage ../development/ocaml-modules/bitstring { };
5452
5553 bitstring =
56− if lib.versionOlder "4.02" ocaml_version
54+ if lib.versionOlder "4.02" ocaml.version
5755 then bitstring_git
5856 else bitstring_2_0_4;
5957
6058 camlidl = callPackage ../development/tools/ocaml/camlidl { };
6159
6260 camlp4 =
63− if lib.versionOlder "4.03" ocaml_version
61+ if lib.versionOlder "4.03" ocaml.version
6462 then callPackage ../development/tools/ocaml/camlp4/4_03.nix { }
65− else if lib.versionOlder "4.02" ocaml_version
63+ else if lib.versionOlder "4.02" ocaml.version
6664 then callPackage ../development/tools/ocaml/camlp4 { }
6765 else null;
6866
6967 camlp5_old_strict =
70− if lib.versionOlder "4.00" ocaml_version
68+ if lib.versionOlder "4.00" ocaml.version
7169 then camlp5_6_strict
7270 else callPackage ../development/tools/ocaml/camlp5/5.15.nix { };
7371
7472 camlp5_old_transitional =
75− if lib.versionOlder "4.00" ocaml_version
73+ if lib.versionOlder "4.00" ocaml.version
7674 then camlp5_6_transitional
7775 else callPackage ../development/tools/ocaml/camlp5/5.15.nix {
7876 transitional = true;
@@ -227,7 +225,7 @@ let
227225 };
228226
229227 lablgtk-extras =
230− if lib.versionOlder "4.02" ocaml_version
228+ if lib.versionOlder "4.02" ocaml.version
231229 then callPackage ../development/ocaml-modules/lablgtk-extras { }
232230 else callPackage ../development/ocaml-modules/lablgtk-extras/1.4.nix { };
233231
@@ -237,7 +235,7 @@ let
237235
238236 lambdaTerm-1_6 = callPackage ../development/ocaml-modules/lambda-term/1.6.nix { };
239237 lambdaTerm =
240− if lib.versionOlder "4.01" ocaml_version
238+ if lib.versionOlder "4.01" ocaml.version
241239 then callPackage ../development/ocaml-modules/lambda-term { }
242240 else lambdaTerm-1_6;
243241
@@ -274,7 +272,7 @@ let
274272 core_p4 = callPackage ../development/ocaml-modules/core { };
275273
276274 ocamlbuild =
277− if lib.versionOlder "4.03" ocaml_version then
275+ if lib.versionOlder "4.03" ocaml.version then
278276 callPackage ../development/tools/ocaml/ocamlbuild { }
279277 else
280278 null;
@@ -368,11 +366,11 @@ let
368366 type_conv_109_60_01 = callPackage ../development/ocaml-modules/type_conv/109.60.01.nix { };
369367 type_conv_112_01_01 = callPackage ../development/ocaml-modules/type_conv/112.01.01.nix { };
370368 type_conv =
371− if lib.versionOlder "4.02" ocaml_version
369+ if lib.versionOlder "4.02" ocaml.version
372370 then type_conv_112_01_01
373− else if lib.versionOlder "4.00" ocaml_version
371+ else if lib.versionOlder "4.00" ocaml.version
374372 then type_conv_109_60_01
375− else if lib.versionOlder "3.12" ocaml_version
373+ else if lib.versionOlder "3.12" ocaml.version
376374 then type_conv_108_08_00
377375 else null;
378376
@@ -381,11 +379,11 @@ let
381379 sexplib_112_24_01 = callPackage ../development/ocaml-modules/sexplib/112.24.01.nix { };
382380
383381 sexplib_p4 =
384− if lib.versionOlder "4.02" ocaml_version
382+ if lib.versionOlder "4.02" ocaml.version
385383 then sexplib_112_24_01
386− else if lib.versionOlder "4.00" ocaml_version
384+ else if lib.versionOlder "4.00" ocaml.version
387385 then sexplib_111_25_00
388− else if lib.versionOlder "3.12" ocaml_version
386+ else if lib.versionOlder "3.12" ocaml.version
389387 then sexplib_108_08_00
390388 else null;
391389
@@ -407,17 +405,17 @@ let
407405 pprint = callPackage ../development/ocaml-modules/pprint { };
408406
409407 ppx_blob =
410− if lib.versionAtLeast ocaml_version "4.02"
408+ if lib.versionAtLeast ocaml.version "4.02"
411409 then callPackage ../development/ocaml-modules/ppx_blob {}
412410 else null;
413411
414412 ppx_deriving =
415− if lib.versionAtLeast ocaml_version "4.02"
413+ if lib.versionAtLeast ocaml.version "4.02"
416414 then callPackage ../development/ocaml-modules/ppx_deriving {}
417415 else null;
418416
419417 ppx_tools =
420− if lib.versionAtLeast ocaml_version "4.02"
418+ if lib.versionAtLeast ocaml.version "4.02"
421419 then callPackage ../development/ocaml-modules/ppx_tools {}
422420 else null;
423421
@@ -534,74 +532,74 @@ let
534532
535533 # Core sublibs
536534 typerep =
537− if lib.versionOlder "4.02" ocaml_version
535+ if lib.versionOlder "4.02" ocaml.version
538536 then callPackage ../development/ocaml-modules/janestreet/typerep.nix {}
539537 else typerep_p4;
540538
541539 fieldslib =
542− if lib.versionOlder "4.02" ocaml_version
540+ if lib.versionOlder "4.02" ocaml.version
543541 then callPackage ../development/ocaml-modules/janestreet/fieldslib.nix {}
544542 else fieldslib_p4;
545543
546544 sexplib =
547− if lib.versionOlder "4.02" ocaml_version
545+ if lib.versionOlder "4.02" ocaml.version
548546 then callPackage ../development/ocaml-modules/janestreet/sexplib.nix {}
549547 else sexplib_p4;
550548
551549 variantslib =
552− if lib.versionOlder "4.02" ocaml_version
550+ if lib.versionOlder "4.02" ocaml.version
553551 then callPackage ../development/ocaml-modules/janestreet/variantslib.nix {}
554552 else variantslib_p4;
555553
556554 bin_prot =
557− if lib.versionOlder "4.02" ocaml_version
555+ if lib.versionOlder "4.02" ocaml.version
558556 then callPackage ../development/ocaml-modules/janestreet/bin_prot.nix {}
559557 else bin_prot_p4;
560558
561559 core_kernel =
562− if lib.versionOlder "4.02" ocaml_version
560+ if lib.versionOlder "4.02" ocaml.version
563561 then callPackage ../development/ocaml-modules/janestreet/core_kernel.nix {}
564562 else core_kernel_p4;
565563
566564 core =
567− if lib.versionOlder "4.02" ocaml_version
565+ if lib.versionOlder "4.02" ocaml.version
568566 then callPackage ../development/ocaml-modules/janestreet/core.nix {}
569567 else core_p4;
570568
571569 re2 =
572− if lib.versionOlder "4.02" ocaml_version
570+ if lib.versionOlder "4.02" ocaml.version
573571 then callPackage ../development/ocaml-modules/janestreet/re2.nix {}
574572 else re2_p4;
575573
576574 textutils =
577− if lib.versionOlder "4.02" ocaml_version
575+ if lib.versionOlder "4.02" ocaml.version
578576 then callPackage ../development/ocaml-modules/janestreet/textutils.nix {}
579577 else textutils_p4;
580578
581579 core_extended =
582− if lib.versionOlder "4.02" ocaml_version
580+ if lib.versionOlder "4.02" ocaml.version
583581 then callPackage ../development/ocaml-modules/janestreet/core-extended.nix {}
584582 else core_extended_p4;
585583
586584 async_kernel =
587− if lib.versionOlder "4.02" ocaml_version
585+ if lib.versionOlder "4.02" ocaml.version
588586 then callPackage ../development/ocaml-modules/janestreet/async-kernel.nix {}
589587 else async_kernel_p4;
590588
591589 async_rpc_kernel = callPackage ../development/ocaml-modules/janestreet/async-rpc-kernel.nix {};
592590
593591 async_unix =
594− if lib.versionOlder "4.02" ocaml_version
592+ if lib.versionOlder "4.02" ocaml.version
595593 then callPackage ../development/ocaml-modules/janestreet/async-unix.nix {}
596594 else async_unix_p4;
597595
598596 async_extra =
599− if lib.versionOlder "4.02" ocaml_version
597+ if lib.versionOlder "4.02" ocaml.version
600598 then callPackage ../development/ocaml-modules/janestreet/async-extra.nix {}
601599 else async_extra_p4;
602600
603601 async =
604− if lib.versionOlder "4.02" ocaml_version
602+ if lib.versionOlder "4.02" ocaml.version
605603 then callPackage ../development/ocaml-modules/janestreet/async.nix {}
606604 else async_p4;
607605