diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-04-27 13:52:15 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-04-28 21:44:21 +0000 |
commit | a8afbb45c12be27b9b93a802e9e276595899ed5a (patch) | |
tree | b4065c9ea79cf310b1b76976f21067761c206d88 /pkgs/development/perl-modules | |
parent | 81e1e68eaf6c765147da964d356f704030734dd2 (diff) |
treewide: use lib.warnIf where appropriate
Diffstat (limited to 'pkgs/development/perl-modules')
-rw-r--r-- | pkgs/development/perl-modules/generic/default.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/perl-modules/generic/default.nix b/pkgs/development/perl-modules/generic/default.nix index c7b57eae9067d..9beacd65a646e 100644 --- a/pkgs/development/perl-modules/generic/default.nix +++ b/pkgs/development/perl-modules/generic/default.nix @@ -5,10 +5,8 @@ assert attrs?pname -> attrs?version; assert attrs?pname -> !(attrs?name); -(if attrs ? name then - lib.trivial.warn "builtPerlPackage: `name' (\"${attrs.name}\") is deprecated, use `pname' and `version' instead" - else - (x: x)) +lib.warnIf (attrs ? name) "builtPerlPackage: `name' (\"${attrs.name}\") is deprecated, use `pname' and `version' instead" + toPerlModule(stdenv.mkDerivation ( ( lib.recursiveUpdate |