about summary refs log tree commit diff
path: root/src/libstore/remote-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-04-30T23·15-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-04-30T23·15-0400
commitdb5b86ef13026d7f034527005ab231ddc2b7d2c1 (patch)
tree590c3761e9d3cfae634a81fb80cc47659666941d /src/libstore/remote-store.cc
parent59a26360c75f1cf5fe65fce5e3703df0b6645140 (diff)
* 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.
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r--src/libstore/remote-store.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index 0b8fa36f6df4..0fd759b07b4b 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -197,6 +197,9 @@ void RemoteStore::setOptions()
     }
     if (GET_PROTOCOL_MINOR(daemonVersion) >= 6)
         writeInt(buildCores, to);
+    if (GET_PROTOCOL_MINOR(daemonVersion) >= 10) 
+        writeInt(queryBoolSetting("build-use-substitutes", true), to);
+    
     processStderr();
 }