ocamlPackages.uri_p4: disable for OCaml ≥ 4.03

This commit is contained in:
Vincent Laporte 2017-06-26 04:08:57 +02:00
parent 7829eb794f
commit 459f17a8d5

View File

@ -4,7 +4,9 @@
, sexplib_p4
}:
assert stdenv.lib.versionAtLeast ocaml.version "4";
if !stdenv.lib.versionAtLeast ocaml.version "4"
|| legacyVersion && stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "uri${stdenv.lib.optionalString legacyVersion "_p4"} is not available for OCaml ${ocaml.version}" else
with
if legacyVersion