New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib: Factor in tiny bit of meta.platform
checking
#37395
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I need it in stdenv and release-lib, so that seems motivation enough.
Ericson2314
force-pushed
the
lib-meta-platform
branch
from
March 19, 2018 23:33
e472e96
to
e547bd0
Compare
I need this to fix some things I broke in #3444 (missing tests so I guess ofborg didn't notice). |
Ericson2314
commented
Mar 20, 2018
We can inject these into a patten for the whole of a structured platform, | ||
and then match that. | ||
*/ | ||
platformMatch = platform: elem: let |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CC @vcunat I did this and not matchPlatform
because the platform comes before the pattern, but maybe it's best to keep normal English word order here.
This was referenced Oct 9, 2022
ghost
mentioned this pull request
Jan 1, 2023
2 tasks
alyssais
pushed a commit
that referenced
this pull request
Jan 11, 2023
`hasUnsupportedPlatform` was not updated with #37395, so it does not understand attrsets in `meta.[bad]platforms`. In particular, attrsets in `meta.badPlatforms` will "fail open" and be ignored. Let's use `lib.meta.availableOn` instead of duplicating its logic. Thanks to @alyssais for [noticing][1]. [1][#194148 (comment)] Co-authored-by: sternenseemann <sternenseemann@systemli.org>
AndersonTorres
pushed a commit
to atorres1985-contrib/nixpkgs
that referenced
this pull request
Jan 12, 2023
`hasUnsupportedPlatform` was not updated with NixOS#37395, so it does not understand attrsets in `meta.[bad]platforms`. In particular, attrsets in `meta.badPlatforms` will "fail open" and be ignored. Let's use `lib.meta.availableOn` instead of duplicating its logic. Thanks to @alyssais for [noticing][1]. [1][NixOS#194148 (comment)] Co-authored-by: sternenseemann <sternenseemann@systemli.org>
adamcstephens
pushed a commit
to adamcstephens/nixpkgs
that referenced
this pull request
Jan 25, 2023
`hasUnsupportedPlatform` was not updated with NixOS#37395, so it does not understand attrsets in `meta.[bad]platforms`. In particular, attrsets in `meta.badPlatforms` will "fail open" and be ignored. Let's use `lib.meta.availableOn` instead of duplicating its logic. Thanks to @alyssais for [noticing][1]. [1][NixOS#194148 (comment)] Co-authored-by: sternenseemann <sternenseemann@systemli.org>
ghost
mentioned this pull request
Mar 24, 2023
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation for this change
I need it in stdenv and release-lib, so that seems motivation enough.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)