How to get Jabref web-extension to work? (firefox)

Hello,
I’ve been trying to get the Jabref browser extension working for some time now but seem to not succeed, thus I’ve come here.

On windows and macos it seems to work out of the box, on Arch I remember that I had to add the paths as described in the documentation here.

In the python there seem to be “hardcoded” links to directories that contain other parts of the extension and program which don’t work for nixos.

I could just fix all the paths, use home-manager to input files in the right places but these options don’t seem like they’re a nice way to fix it.
There is also a nix option programs.firefox.nativeMessagingHosts.jabref but that still brings up the “No such native application org.jabref.jabref” that it is supposed to fix.

I’m sure there are some people out there that are running nixos with jabref and have found better solutions, that’s why I’m here now, let me know when you have one or other ideas how to fix it, thanks!

Links:

With NixOS 25.05 and a Home-Manager Firefox config, the option nativeMessagingHosts = with pkgs; [ gnome-browser-connector jabref ]; replaces the config file by the proper python script path and results in a properly working JabRef extension.