ocamlPackages.ocurl: disable for ocaml<4.02

This commit is contained in:
Mario Rodas 2019-08-25 03:30:00 -05:00
parent f188bad6ea
commit 02388c07bd
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8

View File

@ -1,5 +1,9 @@
{ stdenv, pkgconfig, ocaml, findlib, fetchurl, curl, ncurses }:
if stdenv.lib.versionOlder ocaml.version "4.02"
then throw "ocurl is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocurl-0.8.2";
src = fetchurl {