You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use dedicated lock files for builds which will use build hooks for
building
This allows the build hook to use the local store.
In order for the split locks to be used, derivations must either only
use the build hook (avoid-local) or only be built locally
(forceLocal/bmLocal).
Copy file name to clipboardExpand all lines: src/libstore/include/nix/store/worker-settings.hh
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,8 @@ public:
198
198
199
199
The value for this field can be obtained via `base64 -w0`.
200
200
201
+
9. A boolean which if true, forces the build to not use builders on the remote store
202
+
201
203
> **Example**
202
204
>
203
205
> Multiple builders specified on the command line:
@@ -270,6 +272,16 @@ public:
270
272
This can drastically reduce build times if the network connection between the local machine and the remote build host is slow.
271
273
)"};
272
274
275
+
Setting<bool> avoidLocal{
276
+
this,
277
+
false,
278
+
"avoid-local",
279
+
R"(
280
+
If set to `true`, Nix will not build derivations locally which can be built by the [`builders`]{#conf-builders}. This does not include derivations with preferLocalBuild set for which [`max-jobs`]{#conf-max-jobs} still applies.
281
+
282
+
This enables remote only locks which are not used by local builds
0 commit comments