treewide: use lib.warnIf where appropriate

This commit is contained in:
Alyssa Ross
2021-04-28 21:44:21 +00:00
parent 81e1e68eaf
commit a8afbb45c1
6 changed files with 12 additions and 19 deletions
@@ -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