ocamlPackages.logs: disable for OCaml < 4.03

This commit is contained in:
Vincent Laporte 2019-08-23 17:51:41 +00:00
parent a8d3aebdce
commit 7cca325b07
No known key found for this signature in database
GPG key ID: EBD582ADDDB1F81F

View file

@ -5,7 +5,9 @@ let
webpage = "https://erratique.ch/software/${pname}";
in
assert stdenv.lib.versionAtLeast ocaml.version "4.01.0";
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "logs is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml-${pname}-${version}";