ocamlPackages: make explicit some version requirements

This commit is contained in:
Vincent Laporte 2017-04-28 16:13:54 +00:00
parent 1bacfb4637
commit 752351e889
3 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,8 @@
{ stdenv, fetchurl, ocaml, jbuilder, findlib }: { stdenv, fetchurl, ocaml, jbuilder, findlib }:
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "base is not available for OCaml ${ocaml.version}" else
stdenv.mkDerivation { stdenv.mkDerivation {
name = "ocaml${ocaml.version}-base-0.9.0"; name = "ocaml${ocaml.version}-base-0.9.0";

View File

@ -2,6 +2,9 @@
, bos, cmdliner, ocamlgraph , bos, cmdliner, ocamlgraph
}: }:
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "functoria is not available for OCaml ${ocaml.version}" else
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-functoria-${version}"; name = "ocaml${ocaml.version}-functoria-${version}";
version = "2.0.2"; version = "2.0.2";

View File

@ -1,5 +1,8 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, owee }: { stdenv, fetchFromGitHub, ocaml, findlib, owee }:
if !stdenv.lib.versionAtLeast ocaml.version "4.04"
then throw "spacetime_lib is not available for OCaml ${ocaml.version}" else
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-spacetime_lib-${version}"; name = "ocaml${ocaml.version}-spacetime_lib-${version}";
version = "0.1.0"; version = "0.1.0";