Closed Silverdev2482 closed 3 months ago
The reason why it can't find it in PATH is because the PATH for the service you are running the server in doesn't include it. (systemd services, by design, are isolated from the user's path).
This is less a mod-side feature request, and more so a request to be able to add things to a server's systemd service path.
With regards to your 3 ideas:
I ran across a mod called Fastback which I want to use to make backups on my server. According to the developer it finds git in the $PATH, but I assume, probably because nixos trying to keep things pure it prevents certian applications from accessing the path, but I could be wrong. It uses git and native git is faster that the java implementation of it. in certain operations git is 35 times faster. Because of this I believe there should be a way for mods to use native programs. I also wonder if there should be a way for mods to use native libraries or can take advantage of them, I do not know if any mods do this however nor do I have examples. I have a few 3 ideas for solutions but I'm not sure if they would work.
Personally I would say do 1 or 2 and if mods that do require native libraries exist do 3, although that requires a lot of work.