diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-10 20:15:42 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-07-10 20:18:48 +0200 |
commit | 79ddb5d5e066215f52d8514f778bd0e7dc9e203f (patch) | |
tree | a51236a4e6a939c46321efbfc53da98d62a96c3a /pkgs/development/ocaml-modules | |
parent | 07f27eddae754d883f876425854e39d7e656fa1e (diff) |
ocamlPackages.topkg: requires OCaml ≥ 4.01
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/topkg/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/topkg/default.nix b/pkgs/development/ocaml-modules/topkg/default.nix index f343eed6b4673..fa238a84b35cd 100644 --- a/pkgs/development/ocaml-modules/topkg/default.nix +++ b/pkgs/development/ocaml-modules/topkg/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchurl, ocaml, findlib, ocamlbuild, result, opam }: +if !stdenv.lib.versionAtLeast ocaml.version "4.01" +then throw "topkg is not available for OCaml ${ocaml.version}" +else + stdenv.mkDerivation rec { name = "ocaml${ocaml.version}-topkg-${version}"; version = "0.8.1"; |