ocamlPackages.ocf: disable for OCaml ≥ 4.08

This commit is contained in:
Vincent Laporte 2020-03-08 16:59:04 +01:00 committed by Vincent Laporte
parent bab3588e4e
commit 4ce4db473c
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{ stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ppx_tools, yojson }: { stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ppx_tools, yojson }:
if stdenv.lib.versionOlder ocaml.version "4.03" if stdenv.lib.versionOlder ocaml.version "4.03"
|| stdenv.lib.versionAtLeast ocaml.version "4.08"
then throw "ocf not supported for ocaml ${ocaml.version}" then throw "ocf not supported for ocaml ${ocaml.version}"
else else
stdenv.mkDerivation rec { stdenv.mkDerivation rec {