ocamlPackages.pgocaml: requires OCaml ≥ 4.00

This commit is contained in:
Vincent Laporte 2017-07-03 22:10:07 +02:00
parent 2e2769f96c
commit ba757e6a76

View File

@ -1,4 +1,8 @@
{ stdenv, fetchurl, buildOcaml, calendar, csv, re }: { stdenv, fetchurl, buildOcaml, ocaml, calendar, csv, re }:
if !stdenv.lib.versionAtLeast ocaml.version "4"
then throw "pgocaml is not available for OCaml ${ocaml.version}"
else
buildOcaml { buildOcaml {
name = "pgocaml"; name = "pgocaml";