about summary refs log tree commit diff
path: root/src/nix-worker/nix-worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-worker/nix-worker.cc')
-rw-r--r--src/nix-worker/nix-worker.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc
index 4b0c9e319130..c69b9de506d6 100644
--- a/src/nix-worker/nix-worker.cc
+++ b/src/nix-worker/nix-worker.cc
@@ -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();