mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
daemon: Really override the substituters setting.
Reported by Andreas Enge <andreas@enge.fr>: <https://lists.gnu.org/archive/html/guix-devel/2014-03/msg00211.html>. * nix/nix-daemon/guix-daemon.cc (main): Set the 'NIX_SUBSTITUTERS' env. var. Leave 'settings.substituters' unchanged.
This commit is contained in:
parent
1fda6840a8
commit
89faa5c75c
1 changed files with 5 additions and 4 deletions
|
@ -287,10 +287,11 @@ main (int argc, char *argv[])
|
|||
string subs = getEnv ("NIX_SUBSTITUTERS", "default");
|
||||
|
||||
if (subs == "default")
|
||||
settings.substituters.push_back (settings.nixLibexecDir
|
||||
+ "/guix/substitute-binary");
|
||||
else
|
||||
settings.substituters = tokenizeString<Strings> (subs, ":");
|
||||
{
|
||||
string subst =
|
||||
settings.nixLibexecDir + "/guix/substitute-binary";
|
||||
setenv ("NIX_SUBSTITUTERS", subst.c_str (), 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (geteuid () == 0 && settings.buildUsersGroup.empty ())
|
||||
|
|
Loading…
Reference in a new issue