···9293 A package is available on a platform if both
9495- 1. One of `meta.platforms` pattern matches the given platform.
09697 2. None of `meta.badPlatforms` pattern matches the given platform.
98 */
99 availableOn = platform: pkg:
100- lib.any (platformMatch platform) pkg.meta.platforms &&
101 lib.all (elem: !platformMatch platform elem) (pkg.meta.badPlatforms or []);
102103 /* Get the corresponding attribute in lib.licenses
···9293 A package is available on a platform if both
9495+ 1. One of `meta.platforms` pattern matches the given
96+ platform, or `meta.platforms` is not present.
9798 2. None of `meta.badPlatforms` pattern matches the given platform.
99 */
100 availableOn = platform: pkg:
101+ ((!pkg?meta.platforms) || lib.any (platformMatch platform) pkg.meta.platforms) &&
102 lib.all (elem: !platformMatch platform elem) (pkg.meta.badPlatforms or []);
103104 /* Get the corresponding attribute in lib.licenses