diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-12-10 19:59:50 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-12-17 17:46:46 +0000 |
commit | b5f580fa2e146c9f326bd64938099a4b5c848a9c (patch) | |
tree | 49cb1cc9ea2470a50fb5ef964ff982e73d1a6bd7 /pkgs/development | |
parent | 5e786dedc1b99f68542c0ec8824a87a8d544aaa5 (diff) |
ocamlPackages.labltk: fix evaluation with OCaml < 4.04
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/ocaml-modules/labltk/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/labltk/default.nix b/pkgs/development/ocaml-modules/labltk/default.nix index 10555771feefb..b4a4e012560e0 100644 --- a/pkgs/development/ocaml-modules/labltk/default.nix +++ b/pkgs/development/ocaml-modules/labltk/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchurl, ocaml, findlib, tcl, tk }: +if !stdenv.lib.versionAtLeast ocaml.version "4.04" +then throw "labltk is not available for OCaml ${ocaml.version}" +else + let param = { "4.04" = { version = "8.06.2"; |