mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 16:11:58 +00:00
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;
|
||||
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