Skip to content

Commit 6985598

Browse files
authored
doc: recursive-nix: advertise requiredSystemFeatures
It's best we teach users that the "foo" derivation is less than pure in the sense that it cannot be built just on any system, in particular that builders cannot be selected arbitrarily but based on their system-features. The `"recursive-nix"` system-feature is automatically defined by `--extra-experimental-features recursive-nix`
1 parent 693a38a commit 6985598

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libutil/experimental-features.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ constexpr std::array<ExperimentalFeatureDetails, numXpFeatures> xpFeatureDetails
125125
126126
runCommand "foo"
127127
{
128+
# Optional: let Nix know "foo" requires the experimental feature
129+
requiredSystemFeatures = [ "recursive-nix" ];
128130
buildInputs = [ nix jq ];
129131
NIX_PATH = "nixpkgs=${<nixpkgs>}";
130132
}

0 commit comments

Comments
 (0)