mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
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`
This commit is contained in:
parent
693a38ae2e
commit
6985598153
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ constexpr std::array<ExperimentalFeatureDetails, numXpFeatures> xpFeatureDetails
|
|||
|
||||
runCommand "foo"
|
||||
{
|
||||
# Optional: let Nix know "foo" requires the experimental feature
|
||||
requiredSystemFeatures = [ "recursive-nix" ];
|
||||
buildInputs = [ nix jq ];
|
||||
NIX_PATH = "nixpkgs=${<nixpkgs>}";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue