diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-10 20:18:09 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-10 20:18:48 +0200 |
commit | c9468acdf42611ce5a753a394796b1a0977c600b (patch) | |
tree | 0ff829486b33491a948f23e8a021ef7aa94e041e /pkgs/development/ocaml-modules | |
parent | 79ddb5d5e066215f52d8514f778bd0e7dc9e203f (diff) |
ocamlPackages.ocaml-migrate-parsetree: requires OCaml ≥ 4.02
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix b/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix index a056cdeb1b5e6..46cc922917e2f 100644 --- a/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix +++ b/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, jbuilder, result }: +if !stdenv.lib.versionAtLeast ocaml.version "4.02" +then throw "ocaml-migrate-parsetree is not available for OCaml ${ocaml.version}" +else + stdenv.mkDerivation rec { name = "ocaml${ocaml.version}-ocaml-migrate-parsetree-${version}"; version = "0.7"; |