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 a derivation has the `rejectSystemFeatures` attribute, then Nix will only build it on a machine that does not have the corresponding features set in its [`system-features` configuration](@docroot@/command-ref/conf-file.md#conf-system-features).
376
+
377
+
For example, setting
378
+
379
+
```nix
380
+
rejectSystemFeatures = [ "pages-16k" ];
381
+
```
382
+
383
+
ensures that the derivation can only be built on a machine which does not have the `pages-16k` feature.
Copy file name to clipboardExpand all lines: src/libstore/globals.hh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -304,7 +304,7 @@ public:
304
304
305
305
6. A comma-separated list of supported [system features](#conf-system-features).
306
306
307
-
A machine will only be used to build a derivation if all the features in the derivation's [`requiredSystemFeatures`](@docroot@/language/advanced-attributes.html#adv-attr-requiredSystemFeatures) attribute are supported by that machine.
307
+
A machine will only be used to build a derivation if all the features in the derivation's [`requiredSystemFeatures`](@docroot@/language/advanced-attributes.html#adv-attr-requiredSystemFeatures) attribute are supported by that machine and does not have any features in [`rejectSystemFeatures`](@docroot@/language/advanced-attributes.html#adv-attr-rejectSystemFeatures).
308
308
309
309
7. A comma-separated list of required [system features](#conf-system-features).
0 commit comments