ocamlPackages.bin_prot_p4: disable for OCaml ≥ 4.06

This commit is contained in:
Vincent Laporte 2018-08-21 13:15:58 +00:00
parent 6d38ada0ba
commit 15a568cfe6
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F

View File

@ -1,4 +1,8 @@
{stdenv, buildOcaml, fetchurl, type_conv}:
{ stdenv, buildOcaml, fetchurl, ocaml, type_conv }:
if stdenv.lib.versionAtLeast ocaml.version "4.06"
then throw "bin_prot-112.24.00 is not available for OCaml ${ocaml.version}"
else
buildOcaml rec {
name = "bin_prot";