NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.14k forks source link

Move extensions to separate output #32817

Open jtojnar opened 6 years ago

jtojnar commented 6 years ago

Some packages build other plug-ins, modules or extensions for external software like Nautilus, GNOME Shell or even GTK (https://github.com/NixOS/nixpkgs/issues/18559#issuecomment-352232675). These plug-ins make sense only for a subset of users, for example, Dejà Dup plug-in for Nautilus is probably not needed in XFCE (they use Thunar instead of Nautilus).

The following new outputs could be introduced to derivations:

There are also some paths like share/applications/gnome-control-center/keybindings or share/gnome-shell/search-providers but those only contain simple XML files so moving them out it probably more trouble than it’s worth.

vcunat commented 6 years ago

Mozilla has killed plugins, so that's one less. In general the splits are probably worth only in cases with a significant difference in closure...

FRidh commented 5 years ago

I propose non-FHS outputs have a standard prefix so as not to clutter the resulting attribute set. Would it work to prefix them with output, considering we also use outputBin and such in the implementation of multiple outputs.

jtojnar commented 5 years ago

I do not understand. Is not the output* only used for redirecting one output to another?

FRidh commented 5 years ago

I don't know the implementation details, that's why I am asking. Quickly tested creating an output outputFoo and things work as expected.

jtojnar commented 5 years ago

Yes, it will create the output with that name but the output prefix will not do anything special. Quite the contrary, it will be confusable with the output* variables indirection: users might think that outputFoo is a variable that redirects foo output to a different one.

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.