diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-02-17 18:02:09 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-02-17 18:23:17 +0100 |
commit | 6b1057b452c55bb3b463f0d7055bc4ec3fd1f381 (patch) | |
tree | 4f8af895cdff7a4a3263acecead0791c57fe0a88 /pkgs/development/ocaml-modules/uucp | |
parent | 9fbcf91b3c5b0ca07c402771762f94ed09134277 (diff) |
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.
Diffstat (limited to 'pkgs/development/ocaml-modules/uucp')
-rw-r--r-- | pkgs/development/ocaml-modules/uucp/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/uucp/default.nix b/pkgs/development/ocaml-modules/uucp/default.nix index 433e3f9cb1068..bb70ff6a4b7ef 100644 --- a/pkgs/development/ocaml-modules/uucp/default.nix +++ b/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 { |