ocamlPackages.gapi_ocaml: disable for OCaml < 4.02
This commit is contained in:
parent
4a0c93f078
commit
9c6be76276
|
@ -1,5 +1,9 @@
|
||||||
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, opam, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
|
{ 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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "gapi-ocaml-${version}";
|
name = "gapi-ocaml-${version}";
|
||||||
version = "0.3.6";
|
version = "0.3.6";
|
||||||
|
|
Loading…
Reference in New Issue