* 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:
Eelco Dolstra 2006-12-04 13:09:16 +00:00
parent 9322b399f3
commit 1e16d20655
6 changed files with 11 additions and 2 deletions

View file

@ -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();