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:
parent
9fbcf91b3c
commit
6b1057b452
1 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in a new issue