Rofi on wayland and plugins

Since wofi is not maintained anymore, I moved back to rofi, and in particular its Wayland port that has recently (?) appeared in unstable.

But now I also noticed the various rofi-calc etc, and I wanted to give it a try. However, they don’t seem to work. I assume it’s because they have the original (non Wayland) rofi as input of the derivation, to do things like this.

Now my question: assuming I want to try to adapt it, what would a good way of making this general be?

  • adding a rofiPackage parameter to the derivation?
  • doing something similar to kodi.withPlugins?
  • is there a global flag saying “use wayland”?

I ran into the same, have you hacked a solution “already”?

I guess the quick&dirty option is to override most of the wayland derivation to do the wrapping as in the normal package, but I’d say (since multiple plugins are supported by the config) it would be better to get rid of the wrapper entirely and rely on config generation (e.g. as in HM) to specify the plugins.

Currently the HM module is “not smart enough” to handle the plugins option for rofi-wayland, since it just overrides its plugins attribute which is not handled in the package. Si instead it would be better if the HM module just modifies the generated config to map over the plugin package paths and include it.