ocamlPackages.uucp: use throw instead of lib.assertMsg

This makes the uucp evaluation fail silently for nix-env -qaP
ocaml-ng.ocamlPackages_4_02, as throw messages are not printed to
stderr.
This commit is contained in:
sternenseemann 2021-02-17 18:02:09 +01:00 committed by Vincent Laporte
parent 9fbcf91b3c
commit 6b1057b452

View File

@ -8,8 +8,9 @@ let
doCheck = true;
in
assert lib.assertMsg (lib.versionAtLeast ocaml.version minimumOCamlVersion)
"${pname} needs at least OCaml ${minimumOCamlVersion}";
if !(lib.versionAtLeast ocaml.version minimumOCamlVersion)
then builtins.throw "${pname} needs at least OCaml ${minimumOCamlVersion}"
else
stdenv.mkDerivation {