-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
standardize multi-versioning suffix pattern in all-packages.nix #17625
Comments
In certain cases we have multiple versions because we want to support all those versions (e.g. Python interpreters) whereas in other cases we just need that version for a single or a couple of other packages. I've noticed that in My preference is |
I'd prefer package_V_V as it isn't ambiguous. |
@globin could you give an example of when another pattern would be ambigious? Thinking a bit further about it. We also have suffixes like |
Currently only theoretically, but if we have |
It's not even theoretical, we have |
Another theoretical issue: |
I thought the manual said versioned attributes should be named |
I'm in favor of |
python3 should not be a separate attribute. Instead, if multiple python versions can be chosen, they shall be stored in a set (dict, list, etc.) which can be used to determine the requested python version(s). |
Ah, there it is [1]:
|
We have it there but I think most cases don't follow it :-) |
Can we conclude that we go for I actually think if the range of versions is small for a certain package that it should be fine to just use With However, while I think it's clear what the Python version digits imply, it might not be the case when we would support multiple versions of |
It should be noted that in practice single version components are joined with the attribute differently than multiple version components: the former tend to have no separator and the latter tend to be separated by underscores. (Personally I also like this arrangement.) See the classification of |
I recently opened a similar topic on Discourse and came to a similar result on what seems to be the consensus here. |
Closing as this should be a RFC, so that we could officially reach some kind of consensus on this question. Feel free to reopen something against https://github.com/NixOS/rfcs/ , preferably pointing to this as prior discussion and summing the discussions here up :) |
We should definitely change the docs to something else because it's out of touch by two orders of magnitude. 8 attributes satisfy |
The verson part is clear cut. The data speaks for itself; no need for an RFC. See comment above and PR: #156857 |
Issue description
There are currently multiple different ways packages with multiple versions in
all-packages.nix
are named.As this can be is confusing, it would be better to have a common pattern for versions suffixes.
Non exhaustive list:
packageVVV
package_V_V
other patterns
The text was updated successfully, but these errors were encountered: