-
-
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
firefoxpwa: init at 2.11.1 #263404
firefoxpwa: init at 2.11.1 #263404
Conversation
10b6647
to
addacc0
Compare
4689a4a
to
5ea9487
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2859 |
5ea9487
to
383b533
Compare
It should be noted that despite the various |
Agreed, I think the way to go is: For Home Manager I am unsure the Firefox module was changed to match Nixpkgs'. |
383b533
to
e4b9373
Compare
This comment was marked as resolved.
This comment was marked as resolved.
On 05/12/23 00:06, "Camille M." ***@***.***> wrote:
@pasqui23 <https://github.com/pasqui23> would you like to be maintainer
as well?
It would be fine either way
|
Hey, didn't realize this was here so I'm gonna just copy-paste what I wrote in here https://github.com/Rutherther/nur-pkgs/tree/master/pkgs/firefoxpwa found it packaged by someone in NUR, but outdated (2.7.3, current 2.9.1), would it be possible to get it working based on this? I managed to get it installed and was able to get through connector recognition phase and even runtime installation, but wasn't able to actually run a PWA that I successfully installed according to the extension, just wasn't starting up (microsoft teams in my case), but I'm not sure if it's because it's outdated or because something else there is broken Here's minimal working config (using HM, but should work without, I just modified my own config a bit, stripping out unneeded stuff): home.packages = with pkgs; [
nur.repos.rutherther.firefoxpwa
];
programs.firefox = {
enable = true;
package = pkgs.firefox.override {
nativeMessagingHosts = with pkgs; [
nur.repos.rutherther.firefoxpwa-unwrapped
];
};
}; I really like firefox (or floorp, override also works there btw, started using it recently, cuz after using Vivaldi, can't live without sidebar, but I really prefer firefox with it's performance and degree of additional customizability I can get with extensions) and the only thing that keeps me from using it 100% of the time is the lack of PWA support, which this extension could remedy. EDIT: PWA launches only if run through CLI, but not browser UI, although I'm getting this:
But I'm assuming it's not as big of a deal since it still worked? |
This comment was marked as resolved.
This comment was marked as resolved.
My bad, I saw that this issue has been here a while, so I (stupidly) assumed that there were still issues with packaging (judging by the issue upstream as well). If it works correctly then my question isn't valid anymore :) |
ecbc5d8
to
37baa25
Compare
d5f340b
to
0647083
Compare
@filips123 Hi, I will wrap the In NixOS, the updates are done by opening PRs in this repository. There are bots (@r-ryantm) to automate this, and script like Exactly, one only need to add these two options to be ready to go, that's what's great about NixOS! I am working to incorporate your new feature |
For PWAsForFirefox, the extension and the native versions should be mostly in sync, because otherwise, there might be incompatibilities between them. So, if possible, I would like all updates to this package would also get backported to the stable channels when they are released on the unstable. The backporting criteria say that updates for "services that would fail without up-to-date client software" can be backported, so I think this is also applicable to PWAsForFirefox. If this is not possible, then users should be instructed to use this package from the unstable branch, so it's always up-to-date. Also, should |
31d2a22
to
bc58eb4
Compare
Is there any way to run |
Ok, now |
Yeah, but if Firefox itself is updated after |
On nixos your entire system is always built from the same nixpkgs source at a certain commit (usually refrenced by their release tags like There are ways you can use different packages from different nixpkgs versions, but resolving issues arising from that is up to the user. (i.e. using firefox from |
If you want to automatically install the addon:
(Though this solution has some drawbacks, it seems to want to install the addon inside each web app!) |
Then, it seems fine to me. In the future, I will probably change a bit how
What if firefoxpwa is from unstable and firefox is from stable? And if both are from unstable?
It's probably better then to let users manually install the addon. |
FFPWA_SYSDATA = "${placeholder "out"}/share/firefoxpwa"; | ||
completions = "target/${stdenv.targetPlatform.config}/release/completions"; | ||
|
||
gtk_modules = map (x: x + x.gtkModule) [ libcanberra-gtk3 ]; |
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.
gtk_modules = map (x: x + x.gtkModule) [ libcanberra-gtk3 ]; | |
gtk_modules = [ libcanberra-gtk3.gtkModule ]; |
, cups | ||
, pciutils | ||
, libcanberra-gtk3 | ||
, extraLibs ? [ ] |
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.
What is this parameter for?
completions = "target/${stdenv.targetPlatform.config}/release/completions"; | ||
|
||
gtk_modules = map (x: x + x.gtkModule) [ libcanberra-gtk3 ]; | ||
libs = let libs = lib.optionals stdenv.isLinux [ udev libva mesa libnotify xorg.libXScrnSaver cups pciutils ] ++ gtk_modules ++ extraLibs; in lib.makeLibraryPath libs + ":" + lib.makeSearchPathOutput "lib" "lib64" libs; |
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.
libs = let libs = lib.optionals stdenv.isLinux [ udev libva mesa libnotify xorg.libXScrnSaver cups pciutils ] ++ gtk_modules ++ extraLibs; in lib.makeLibraryPath libs + ":" + lib.makeSearchPathOutput "lib" "lib64" libs; | |
libs = let libs = lib.optionals stdenv.isLinux [ udev libva mesa libnotify xorg.libXScrnSaver cups pciutils ] ++ gtk_modules ++ extraLibs ++ lib.makeSearchPathOutput "lib" "lib64" libs; in lib.makeLibraryPath libs; |
firefoxpwa: move to pkgs/by-name
bc58eb4
to
c3a1620
Compare
it works similarly there with this PR:
|
You can also just override the firefox wrapper to add the extension host. I used this with HM since I don't use the firefox option, but would work equally well with
|
@adamcstephens could it be backported to 23.11? |
Description of changes
Fixes #215905
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/
)