Adding plugins for PrismLauncher

I am working on a package that installs a theme for the prismlauncher program / package. The theme would be it’s own package prismlauncher-theme-oreui, but I don’t know how to make them related? Should a nixos or home-manager option be introduced, something like addons, where you can put the package?

Prismlauncher looks in $HOME/.local/share/PrismLauncher/themes and $HOME/.local/share/PrismLauncher/iconthemes for theme folders, and installing them is trivial. The question is how do I make PrismLauncher see the other package?

The theme: https://github.com/ninsent/Ore-UI-theme-pack/tree/1.0

Edit: I am realizing this is not a trivial ask. Unless i can just have the folder share/prismlauncher/ symlinked into the $HOME/.local/ i need to do something else.

I have created a draft pr: prismlauncher-theme-oreui: init at 1.0 by Seba244c · Pull Request #532960 · NixOS/nixpkgs · GitHub

The files are correctly installed if I look in the nix store, but they are not put in folder so PrismLauncher can’t find them.

Currently the themes are just installed into out/, but not discovered by PrismLaucher, and I am not sure how to best fix this.

  1. You could just symlink the folders into $HOME/.local/share/PrismLauncher/themes and $HOME/.local/share/PrismLauncher/iconthemes - but can you do that in nixpkgs?
  2. Do number 1 but with a module - is that more correct?
  3. Patch PrismLauncher to look in all XDG_DATA_DIRS - more work potentially?