I’m packaging a C++ package manager for nix. The package manager only supports one executable to do stuff at a time, so the package manager creates a lockfile in the filesystem, like pacman or dpkg.
I was wondering: is there a known mutable directory where programs can create such lock file? Normally I would assume
/var but is this okay in the nix world?
Thanks for the help!