flake-info: support platform patterns #602
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
nixpkgs currently defines three ways of specifying elements of
meta.{platforms,badPlatforms}
:parsed
field (or possibly in the future an entire platform, see meta: replace predicates with pattern over elaborated platform nixpkgs#212939). This has apparently been a thing for a long time but wasn't used until about a week ago. For now, just skip them without causing an error. Later, maybe figure out a way to display them properly.null
which is not great but at least we support it fine.For reference, the
isGnu
list of patterns looks like this:so the old
System
struct we removed in #580 wouldn't have helped here.