-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
merge some of flake-utils into nixpkgs #123117
Conversation
Make the list of systems that we support as tier 1 and tier 2 available to the user.
This is a copy of the function from flake-utils.eachSystem source: https://github.com/numtide/flake-utils/blob/b543720b25df6ffdfcf9227afafc5b8c1fabfae8/default.nix#L62-L80
Type of feedback I am looking for:
|
Potentially, this PR could also gain a |
* | ||
* Example: | ||
* mapAttrsJump ["x86_64-linux"] (system: { hello = 42; }) | ||
* => { x86_64-linux = { hello = 42; }; } |
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.
This example looks like the regular genAttrs
. Probably should be something like { hello = { x86_64-linux = 42; }; }
.
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
I marked this as stale due to inactivity. → More info |
I would really like to have some of this in nixpkgs, but I don't think this is the right approach.
Given the flake-specific nature of this, I would propose that this go into a new Also as a side note, |
I'll close this because I don't have the energy to push through these changes. Hopefully, this will send the signal to somebody else to take over. I still think that something the useful subset of flake-utils should be added to nixpkgs directly. |
Motivation for this change
90% of the flakes out there are using flake-utils' eachDefaultSystem.
Since all the flakes that use flake-utils also use nixpkgs as a dependency,
move that functionality here.
Before:
After:
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)