ocamlPackages.gapi_ocaml: disable for OCaml < 4.02

This commit is contained in:
Vincent Laporte 2018-05-09 16:38:47 +00:00
parent 4a0c93f078
commit 9c6be76276
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -1,5 +1,9 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, opam, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "gapi-ocaml is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "gapi-ocaml-${version}";
version = "0.3.6";