ocamlPackages.lwt: requires OCaml ≥ 4.00
commit9f9ca26f2836c61508beadb7f11486419483307e
authorVincent Laporte <Vincent.Laporte@gmail.com>
dateMon 3 Jul 2017, 23:58 (9 years ago)
parentba757e6
pkgs/development/ocaml-modules/lwt/default.nix+4
@@ -5,6 +5,10 @@
55, version ? if stdenv.lib.versionAtLeast ocaml.version "4.02" then "2.7.1" else "2.6.0"
66}:
77
8+if !stdenv.lib.versionAtLeast ocaml.version "4"
9+then throw "lwt is not available for OCaml ${ocaml.version}"
10+else
11+
812let sha256 = {
913 "3.0.0" = "0wwhnl9hppixcsdisinj1wmffx0nv6hkpm01z9qvkngkrazi3i88";
1014 "2.7.1" = "0w7f59havrl2fsnvs84lm7wlqpsrldg80gy5afpnpr21zkw22g8w";