-
Notifications
You must be signed in to change notification settings - Fork 79
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
self parameter for eachSystem/eachDefaultSystem #78
Labels
enhancement
New feature or request
Comments
That's a good observation. As long as it doesn't break backwards compatibility, I don't mind extending the existing functions. Otherwise, it's probably best to introduce a new one (if you're sending a PR). |
ilkecan
added a commit
to ilkecan/flake-utils
that referenced
this issue
Sep 7, 2022
ilkecan
added a commit
to ilkecan/flake-utils
that referenced
this issue
Sep 7, 2022
ilkecan
added a commit
to ilkecan/flake-utils
that referenced
this issue
Sep 7, 2022
fwiw, divnix/nosys does just what you are looking for. I did start #83 to maybe see if there was interest in bringing this functionality to live here. |
ilkecan
added a commit
to ilkecan/flake-utils
that referenced
this issue
Oct 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you want to reference a package from another package, or a devShell, etc... inside eachSystem/eachDefaultSystem closure then you have to either use the pesky rec keyword which even does not work for all cases or you have to use self parameter from the flake itself like
self.${system}.packages.abc
which is unnecessarily repeating thesystem
.I propose adding a variant of eachSystem/eachDefaultSystem which could be used like this:
Perhaps it could be made backward compatible similar to overrideAttrs (NixOS/nixpkgs#119942) so new variant of eachSystem may not be necessary.
The text was updated successfully, but these errors were encountered: