ocaml-async: set attribute to null for unsupported OCaml versions

This commit is contained in:
Vincent Laporte 2015-06-01 22:36:00 +02:00
parent 70cb6e67c0
commit 2c9f03ff81

View file

@ -4104,7 +4104,10 @@ let
async_unix = callPackage ../development/ocaml-modules/async_unix { };
async = callPackage ../development/ocaml-modules/async { };
async =
if lib.versionOlder "4.02" ocaml_version
then callPackage ../development/ocaml-modules/async { }
else null;
atd = callPackage ../development/ocaml-modules/atd { };