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.
wip/yesman
sternenseemann 3 years ago committed by Vincent Laporte
parent 9fbcf91b3c
commit 6b1057b452
  1. 5
      pkgs/development/ocaml-modules/uucp/default.nix

@ -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…
Cancel
Save