I’m trying to write a derivation for a package which is distributed as a binary. I’ve managed to get it to run, but at run-time it looks in /usr/share expecting to find the contents of the Resources directory that comes in its tarball.
What are the options for getting around this problem in Nix? FHS? patchelf?
Patchelf won’t help here, you could use sed but there’s no guarantee the path will exist in exactly that shape.
The nicest option is checking if they have some kind of PREFIX or XDG_DATA_DIR that you can set to change the path, and setting that in a wrapper, but that of course requires application support for that.