* Install the worker in bindir, not libexecdir.
* Allow the worker path to be overriden through the NIX_WORKER environment variable.
This commit is contained in:
parent
9322b399f3
commit
1e16d20655
6 changed files with 11 additions and 2 deletions
|
@ -15,6 +15,7 @@ string nixStateDir = "/UNINIT";
|
|||
string nixDBPath = "/UNINIT";
|
||||
string nixConfDir = "/UNINIT";
|
||||
string nixLibexecDir = "/UNINIT";
|
||||
string nixBinDir = "/UNINIT";
|
||||
|
||||
bool keepFailed = false;
|
||||
bool keepGoing = false;
|
||||
|
|
|
@ -32,6 +32,9 @@ extern string nixConfDir;
|
|||
stored. */
|
||||
extern string nixLibexecDir;
|
||||
|
||||
/* nixBinDir is the directory where the main programs are stored. */
|
||||
extern string nixBinDir;
|
||||
|
||||
|
||||
/* Misc. global flags. */
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "remote-store.hh"
|
||||
#include "worker-protocol.hh"
|
||||
#include "archive.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -27,7 +28,9 @@ RemoteStore::RemoteStore()
|
|||
|
||||
|
||||
/* Start the worker. */
|
||||
string worker = "nix-worker";
|
||||
Path worker = getEnv("NIX_WORKER");
|
||||
if (worker == "")
|
||||
worker = nixBinDir + "/nix-worker";
|
||||
|
||||
child = fork();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue