ocamlPackages: make explicit some version requirements

+9
+3
pkgs/development/ocaml-modules/base/default.nix
··· 1 1 { stdenv, fetchurl, ocaml, jbuilder, findlib }: 2 2 3 + if !stdenv.lib.versionAtLeast ocaml.version "4.03" 4 + then throw "base is not available for OCaml ${ocaml.version}" else 5 + 3 6 stdenv.mkDerivation { 4 7 name = "ocaml${ocaml.version}-base-0.9.0"; 5 8
+3
pkgs/development/ocaml-modules/functoria/default.nix
··· 2 2 , bos, cmdliner, ocamlgraph 3 3 }: 4 4 5 + if !stdenv.lib.versionAtLeast ocaml.version "4.03" 6 + then throw "functoria is not available for OCaml ${ocaml.version}" else 7 + 5 8 stdenv.mkDerivation rec { 6 9 name = "ocaml${ocaml.version}-functoria-${version}"; 7 10 version = "2.0.2";
+3
pkgs/development/ocaml-modules/spacetime_lib/default.nix
··· 1 1 { stdenv, fetchFromGitHub, ocaml, findlib, owee }: 2 2 3 + if !stdenv.lib.versionAtLeast ocaml.version "4.04" 4 + then throw "spacetime_lib is not available for OCaml ${ocaml.version}" else 5 + 3 6 stdenv.mkDerivation rec { 4 7 name = "ocaml${ocaml.version}-spacetime_lib-${version}"; 5 8 version = "0.1.0";