diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-04-28 16:13:54 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-04-28 16:19:58 +0000 |
commit | 752351e889ebdf458eddcf22d31ffcecb39c75e5 (patch) | |
tree | 36679264e467dc4bbb35edbbfa75bd38571096c3 | |
parent | 1bacfb463766630dd83153cbd8fbf0f46734ed4b (diff) | |
download | nixlib-752351e889ebdf458eddcf22d31ffcecb39c75e5.tar nixlib-752351e889ebdf458eddcf22d31ffcecb39c75e5.tar.gz nixlib-752351e889ebdf458eddcf22d31ffcecb39c75e5.tar.bz2 nixlib-752351e889ebdf458eddcf22d31ffcecb39c75e5.tar.lz nixlib-752351e889ebdf458eddcf22d31ffcecb39c75e5.tar.xz nixlib-752351e889ebdf458eddcf22d31ffcecb39c75e5.tar.zst nixlib-752351e889ebdf458eddcf22d31ffcecb39c75e5.zip |
ocamlPackages: make explicit some version requirements
-rw-r--r-- | pkgs/development/ocaml-modules/base/default.nix | 3 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/functoria/default.nix | 3 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/spacetime_lib/default.nix | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/base/default.nix b/pkgs/development/ocaml-modules/base/default.nix index 4c92c7f1ca1b..f7627567f9c1 100644 --- a/pkgs/development/ocaml-modules/base/default.nix +++ b/pkgs/development/ocaml-modules/base/default.nix @@ -1,5 +1,8 @@ { 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 { name = "ocaml${ocaml.version}-base-0.9.0"; diff --git a/pkgs/development/ocaml-modules/functoria/default.nix b/pkgs/development/ocaml-modules/functoria/default.nix index bfcdd4168ca7..2d8c00c72383 100644 --- a/pkgs/development/ocaml-modules/functoria/default.nix +++ b/pkgs/development/ocaml-modules/functoria/default.nix @@ -2,6 +2,9 @@ , 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 { name = "ocaml${ocaml.version}-functoria-${version}"; version = "2.0.2"; diff --git a/pkgs/development/ocaml-modules/spacetime_lib/default.nix b/pkgs/development/ocaml-modules/spacetime_lib/default.nix index c12e47968ef0..1eb789ec2690 100644 --- a/pkgs/development/ocaml-modules/spacetime_lib/default.nix +++ b/pkgs/development/ocaml-modules/spacetime_lib/default.nix @@ -1,5 +1,8 @@ { 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 { name = "ocaml${ocaml.version}-spacetime_lib-${version}"; version = "0.1.0"; |