* Add an option ‘build-use-substitutes’, which can be set to ‘false’

to disable use of substitutes; i.e., force building from source.
  Fixes Nix/221.
This commit is contained in:
Eelco Dolstra 2012-04-30 19:15:34 -04:00
parent 59a26360c7
commit db5b86ef13
6 changed files with 23 additions and 4 deletions

View file

@ -513,8 +513,13 @@ static void performOp(unsigned int clientVersion,
logType = (LogType) readInt(from);
printBuildTrace = readInt(from) != 0;
}
if (GET_PROTOCOL_MINOR(clientVersion) >= 6) {
if (GET_PROTOCOL_MINOR(clientVersion) >= 6)
buildCores = readInt(from);
if (GET_PROTOCOL_MINOR(clientVersion) >= 10) {
int x = readInt(from);
Strings ss;
ss.push_back(x == 0 ? "false" : "true");
overrideSetting("build-use-substitutes", ss);
}
startWork();
stopWork();