ocamlPackages.ocaml-migrate-parsetree: requires OCaml ≥ 4.02

This commit is contained in:
Vincent Laporte 2017-07-10 20:18:09 +02:00
parent 79ddb5d5e0
commit c9468acdf4

View File

@ -1,5 +1,9 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, jbuilder, result }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "ocaml-migrate-parsetree is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ocaml-migrate-parsetree-${version}";
version = "0.7";