Help packaging Qt5 binary application (TeamTalk5)

I’m trying to package an unfree binary application (TeamTalk5) for NixOS

I’ve checked through many similar-sounding GitHub issues and other discourse threads, to no avail.

This is the error I’m getting when I attempt to run the built binary:

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

zsh: IOT instruction (core dumped)  ./result/client/teamtalk5

My draft PR for the package is here: WIP Add teamtalk5 by 347Online · Pull Request #376817 · NixOS/nixpkgs · GitHub

Any help here would be greatly appreciated, thanks

Okay, so I’ve been able to get it to run on NixOS, but only with nix develop

If I try to run the binary normally I still get

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

zsh: IOT instruction (core dumped)  nix run .\#teamtalk5 --impure

(Impure because this is an unfree package)

I’ve tried every possible permutation I could come up with from digging around to pass args to wrapQtAppsHook, any advice would be greatly appreciated