Help with a derivation/package

It looks like you’re trying to use the appImage. I believe the appImage support in NixOS uses buildFHSUserEnv under the hood, so in a sense you’ve already been there done that.

Try it with the tarball download instead. The Sidequest package (pkgs/applications/misc/sidequest/default.nix) uses buildFHSUserEnv, for example.