I want to make a package of TomeNET for NixOS but it appears the binary that is being build by the source expects one to have lib/ in his current directory. Is there any way to use another location? I could make a wrapper that copies lib/ to an users home directory if the lib needs to get written to, or just keep it in a system path and refer TomeNET to that if TomeNET only needs read access.
So is it possible to make TomeNET look somewhere else than the current directory for lib/?
lib dir problem
Re: lib dir problem
The game does need to write to the lib directory. You can change the path by setting the TOMENET_PATH environment variable:
export TOMENET_PATH=${HOME}/.tomenet/lib
./tomenet
Or by using a command line switch:
./tomenet -P${HOME}/.tomenet/lib
export TOMENET_PATH=${HOME}/.tomenet/lib
./tomenet
Or by using a command line switch:
./tomenet -P${HOME}/.tomenet/lib
Re: lib dir problem
Thanks, I got it working. Tomenet just needs a wrapper script that takes care of copying over the lib and starting tomenet properly.