-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
webkitgtk: add support for experimental features #280554
webkitgtk: add support for experimental features #280554
Conversation
I think it would be cool, if we could avoid the extra webkitgtk build if we could clarify how this would affect applications that do not use it. |
I agree that it would be nice if we could just set experimental features to default to on. |
Would be nice to see some docs/research on the actual impact. |
I've tried to research that but only really could find this https://trac.webkit.org/changeset/208495/webkit |
Hmm, looks like those include Web APIs (e.g. CSS features) so we should really not enable them by default. For example, a website could have been using CSS grid, a feature that would have been previously ignored. Because it had been unstable at the time, I can imagine enabling it could have broken such website’s layout, or even crashed Epiphany and other webkitgtk based browsers. |
So the pr in it current state should be good, since experimental is not enabled by with this, right? |
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 is this still triggers a pointless rebuild, and if this override is enabled for any packages directly in nixpkgs that's an immediate +1 on the already painful number of rebuilds whenever webkitgtk has updates.
But I'd agree that in its current state, where this is not enabled by default for any packages and just provides a trivial way of overriding this for your own use, it seems fine.
Would love to have webrtc working in Dorion 👍 |
I'm currently using a flake similar to this to enable WebRTC for Tauri v2 (via |
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.
I just decided power of my watered soup, that this is good to go
I've build webkitgtk_6_0, webkitgtk, webkitgtk_4_1 and webkitgtk.overrideAttrs { enableExperimental = true; } locally after a rebase and things work as expected. |
Description of changes
Some webkitgtk consumers (e.g. Tauri apps) can benefit from and use WebRTC, but we do not make the necessary experimental features available currently. This provides an off-by-default boolean switch to allow enabling them for downstream packages
If the maintainers would like, we could flip this to on-by-default, since I do not believe they necessarily cause problems in applications that do not use them. But I will leave it up to you and will adjust the PR accordingly if that is requested
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.