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
If this attribute is set to `true` and [distributed building is enabled](@docroot@/command-ref/conf-file.md#conf-builders), then, if possible, the derivation will be built locally instead of being forwarded to a remote machine.
142
-
This is useful for derivations that are cheapest to build locally.
If this attribute is set to `false`, then Nix will always build this derivation (locally or remotely); it will not try to substitute its outputs.
146
-
This is useful for derivations that are cheaper to build than to substitute.
147
-
148
-
This attribute can be ignored by setting [`always-allow-substitutes`](@docroot@/command-ref/conf-file.md#conf-always-allow-substitutes) to `true`.
149
-
150
-
> **Note**
151
-
>
152
-
> If set to `false`, the [`builder`] should be able to run on the system type specified in the [`system` attribute](./derivations.md#attr-system), since the derivation cannot be substituted.
If this attribute is set to `true` and [distributed building is enabled](@docroot@/command-ref/conf-file.md#conf-builders), then, if possible, the derivation will be built locally instead of being forwarded to a remote machine.
191
+
This is useful for derivations that are cheapest to build locally.
If this attribute is set to `false`, then Nix will always build this derivation (locally or remotely); it will not try to substitute its outputs.
195
+
This is useful for derivations that are cheaper to build than to substitute.
196
+
197
+
This attribute can be ignored by setting [`always-allow-substitutes`](@docroot@/command-ref/conf-file.md#conf-always-allow-substitutes) to `true`.
198
+
199
+
> **Note**
200
+
>
201
+
> If set to `false`, the [`builder`] should be able to run on the system type specified in the [`system` attribute](./derivations.md#attr-system), since the derivation cannot be substituted.
If a derivation has the `requiredSystemFeatures` attribute, then Nix will only build it on a machine that has the corresponding features set in its [`system-features` configuration](@docroot@/command-ref/conf-file.md#conf-system-features).
@@ -241,6 +214,43 @@ Derivations can declare some infrequently used optional attributes.
241
214
242
215
ensures that the derivation can only be built on a machine with the `kvm` feature.
243
216
217
+
# Impure builder configuration
218
+
219
+
-[`impureEnvVars`]{#adv-attr-impureEnvVars}\
220
+
This attribute allows you to specify a list of environment variables
221
+
that should be passed from the environment of the calling user to
222
+
the builder. Usually, the environment is cleared completely when the
223
+
builder is executed, but with this attribute you can allow specific
224
+
environment variables to be passed unmodified. For example,
As discussed in [Derivation Outputs and Types of Derivations](@docroot@/store/derivation/outputs/index.md), there are multiples kinds of derivations / kinds of derivation outputs.
0 commit comments