···92929393 A package is available on a platform if both
94949595- 1. One of `meta.platforms` pattern matches the given platform.
9595+ 1. One of `meta.platforms` pattern matches the given
9696+ platform, or `meta.platforms` is not present.
96979798 2. None of `meta.badPlatforms` pattern matches the given platform.
9899 */
99100 availableOn = platform: pkg:
100100- lib.any (platformMatch platform) pkg.meta.platforms &&
101101+ ((!pkg?meta.platforms) || lib.any (platformMatch platform) pkg.meta.platforms) &&
101102 lib.all (elem: !platformMatch platform elem) (pkg.meta.badPlatforms or []);
102103103104 /* Get the corresponding attribute in lib.licenses