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
@ -287,10 +287,11 @@ main (int argc, char *argv[])
|
|||||||
string subs = getEnv ("NIX_SUBSTITUTERS", "default");
|
string subs = getEnv ("NIX_SUBSTITUTERS", "default");
|
||||||
|
|
||||||
if (subs == "default")
|
if (subs == "default")
|
||||||
settings.substituters.push_back (settings.nixLibexecDir
|
{
|
||||||
+ "/guix/substitute-binary");
|
string subst =
|
||||||
else
|
settings.nixLibexecDir + "/guix/substitute-binary";
|
||||||
settings.substituters = tokenizeString<Strings> (subs, ":");
|
setenv ("NIX_SUBSTITUTERS", subst.c_str (), 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (geteuid () == 0 && settings.buildUsersGroup.empty ())
|
if (geteuid () == 0 && settings.buildUsersGroup.empty ())
|
||||||
|
Loading…
Reference in New Issue
Block a user