-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
bochs: move to by-name hierarchy #254284
bochs: move to by-name hierarchy #254284
Conversation
, libtool | ||
, ncurses | ||
, pkg-config | ||
, readline | ||
, wget | ||
, wxGTK | ||
, wxGTK32 |
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.
Oh this is actually a bit concerning. This is a breaking change because .override { wxGTX = ...; }
doesn't work anymore. I don't think we should make these changes until we have a better story for that, even if this allows removing definitions from all-packages.nix
.
Note that even if you need custom arguments, you can still use the pkgs/by-name
directory.
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.
Bochs didn't update their dependencies yet (they are more concerned about optimizing the emulation core), so overriding wxGTK to other version than that specific one will not work.
I considered the "all-packages-mode" but it didn't feel useful.
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.
Overrides can also be used to just make minor changes to packages, e.g.
.override (old: {
wxGTK = old.wxGTK.overrideAttrs ...;
})
Similarly the darwin
change could also cause breakage, consider:
.override {
libobjc = ...;
}
These overrides would now silently not do anything anymore.
Of course, Nixpkgs has always not really enforced not having such breakages, but the migration to pkgs/by-name
should not cause more of these to happen. This is a problem to be fixed in the future.
I opened #254632 to have this written down.
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.
Similarly the darwin change could also cause breakage
That Darwin-specific things were always problematic to me, since the splicing incident (that, among other things, break inherit (X) a b c;
design pattern).
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.
Oh yeah that also messes with it, there's definitely many things to be improved. I feel like the custom argument one might be the next one to dig into.
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)