NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.11k stars 14.15k forks source link

request: xdg-desktop-portal-gtk variant that doesn't pull in GSD/networkmanager/etc #229702

Open colemickens opened 1 year ago

colemickens commented 1 year ago

Describe the bug

In https://github.com/NixOS/nixpkgs/pull/229600, I made a misguided attempt to remove GSD (gnome-settings-daemon) from xdg-desktop-portal-gtk.

As a Sway user, I don't think GSD is doing me much good. I don't use X11 or Xsettings.

I think we should have a way to build xdg-desktop-portal-gtk with the appropriate options+inputs so as to build a more minimal version appropriate for Sway users.

Rationale:

  1. GSD pulls in NM which pulls in all sorts of stuff
  2. Those deps are large
  3. Those deps often use gobject introspection and those don't cross-compile well.

I use iwd/iwctl everywhere, and thus really don't want NM in my closure / on my system.

colemickens commented 1 year ago

@jtojnar Would it be feasible to extract just the settings schemas from g-s-d, and then use those for xdg-desktop-portal-gtk to avoid pulling in all of the other g-s-d dependencies?

I keep carrying a hack and I'm trying to get my nixpkgs fork under control ... but I can't bare to see NM and WebkitGTK being unnecessarily built for my systems.

I'm asking in the GTK matrix room too, for some advice.

Given that there's an xdg-desktop-portal-gnome, I don't see why the gtk one should pull in so much of gnome stuff.