-
Notifications
You must be signed in to change notification settings - Fork 54
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
General exporter and builderConstructor improvements #43
General exporter and builderConstructor improvements #43
Conversation
Not sure whats up with the nixpkgs-fmt check, I ran it on my system and the file doesn't get changed. |
This depends on numtide/flake-utils#31 |
720c414
to
7abe2f1
Compare
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.
As an extremely promising API fix, this should make it into the upcoming release.
-- I can copy the issue with nixpkgs-fmt, which is why I proposed the devshell in that other PR
77619dc
to
16b5733
Compare
16b5733
to
919cdc1
Compare
This should be ready to go, I just changed the commit to update flake-utils, since the fixup PR has been merged. |
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.
Looks great, tho Ill need to try it out with odd values to see if it is actually working as expected.
Feel free to merge it whenever you think its ready
use pkgs to collect overlays from each channel, since user only passes overlaysBuilder for each channel. Also filter out any overlays defined in inputs
919cdc1
to
b75b8f3
Compare
This is intended to be self.overlays which allows a cleaner api to pass what overlays should be collected and used to create packages export
specifically packagesFromOverlaysBuilderConstructor and overlaysFromChannelsExporter
b75b8f3
to
e3ba667
Compare
This is some fixups and improvments to the api for the overlaysFromChannelsExporter and packagesFromOverlaysBuilderConstructor.
Have overlays exporter take
self.pkgs
andinputs
. The former is so nixpkgs sets are instantiated and the overlay lists are ready. The latter is to auto filter any overlays that were taken from inputs. Its not good to export things that weren't originated in your flake and you don't plan on maintaining.Change packages builderConstructor to just take an attrset of overlays and the builder can then pull out packages defined in overlays from the channels set.