maintainers/build: skip packages without meta

Some packages do not have a meta attribute, and made the script crash.
This commit is contained in:
Francesco Gazzetta 2020-09-09 09:54:03 +02:00
parent b9e1737603
commit b4496d4095

View file

@ -30,7 +30,7 @@ in
packagesWith
(name: pkg:
(
if builtins.hasAttr "maintainers" pkg.meta
if builtins.hasAttr "meta" pkg && builtins.hasAttr "maintainers" pkg.meta
then (
if builtins.isList pkg.meta.maintainers
then builtins.elem maintainer_ pkg.meta.maintainers