I’m working on including some optional templates for LibreOffice Impress as mentioned here: libreoffice: Templates for LibreOffice Impress by LouisDK1 · Pull Request #94753 · NixOS/nixpkgs · GitHub
I personally would prefer a package called “libreofficePlugins.impress-templates” making room for more plugins at a later time.
I’m a bit stuck on this as different packages write there plugins.nix in a different way.
I’ve looked a several plugins.nix (eg. from kodi, deadbeef and chromium) but have yet to find a proper way.
My plan is to do a “callPackage” for libreofficePlugins in either all-packages.nix or default.nix for libreoffice and then the user can specify to build all plugins or just impress-templates and by default none would get build.
A link to an inspirational plugins.nix or a hint in the right direction would be very appreciated.