-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
chromium: remove xdg-utils build dependency as it is wrapped later anyway #246038
chromium: remove xdg-utils build dependency as it is wrapped later anyway #246038
Conversation
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.
According to https://github.com/chromium/chromium/blob/121.0.6167.139/chrome/browser/shell_integration_linux.cc#L258 I think we don't need this here either.
There is some history to this from 2017-2019:
I agree. The chromium derivation, however, is in a very rough shape. I've tested the build manually. I've seen this PR a while ago, but I unfortunately couldn't find any spare time back then. There is a merge conflict in PS @SuperSandro2000: Hope you don't mind, I made the link in your comment a permalink by replacing |
Well, sorry that I took now a little bit longer to respond :) I have updated the PR |
1f7d1fb
to
5248da4
Compare
Started a final I intend to manually test one If everything goes well (I'd be surpised if something doesn't), then I will hit merge. Thanks again :) Do you want/need this to be backported to |
I don't think that's necessary. (At least for me) |
Result of 2 packages marked as broken and skipped:
1 package failed to build:
73 packages built:
# git describe --abbrev=40
24.05-pre-39203-g0267739e11e44bb791b747565758c6446b01eac7
# nix-build nixos/tests/chromium.nix -A stable -A ungoogled
/nix/store/6l1rl1mn51arb48zb1gd60hmzzi6bx4d-vm-test-run-chromium-stable
/nix/store/qmmr5vhg5v9vgwkxwlskjxpgc5hsq9y2-vm-test-run-chromium-ungoogled I also manually tested LGTM |
I don't think it's necessary to bundle/"hard-code" xdg-utils into the chromium source code, as all the binaries in there aren't hardcoded (I checked the relevant chromium source). Since xdg-utils is later added/wrapped to the PATH anyway here:
nixpkgs/pkgs/applications/networking/browsers/chromium/default.nix
Line 215 in da2f86c
I think we should probably minimize build dependencies as much as possible if it can be wrapped later to avoid cache invalidation.
I'm currently rebuilding the world (and especially chromium takes up a good chunk of the time) because of something like this:
https://github.com/Philipp-M/nixos-config/blob/28d77ea08aaccf4544de3d2903210cd6037e3ca2/configuration.nix#L23
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/
)