ocamlPackages.ocaml_cairo: disable for OCaml ≥ 4.06

This commit is contained in:
Vincent Laporte 2018-08-21 17:34:09 +00:00
parent 450e358040
commit ebd62e2423
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -4,6 +4,10 @@ let
pname = "ocaml-cairo";
in
if stdenv.lib.versionAtLeast ocaml.version "4.06"
then throw "${pname} is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "1.2.0";