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
|
@ -8,8 +8,9 @@ let
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
in
|
in
|
||||||
|
|
||||||
assert lib.assertMsg (lib.versionAtLeast ocaml.version minimumOCamlVersion)
|
if !(lib.versionAtLeast ocaml.version minimumOCamlVersion)
|
||||||
"${pname} needs at least OCaml ${minimumOCamlVersion}";
|
then builtins.throw "${pname} needs at least OCaml ${minimumOCamlVersion}"
|
||||||
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue