mirror of
https://github.com/NixOS/nix
synced 2025-07-07 22:33:57 +02:00
Enable recursive Nix using a feature
Derivations that want to use recursion should now set requiredSystemFeatures = [ "recursive-nix" ]; to make the daemon socket appear. Also, Nix should be configured with "experimental-features = recursive-nix".
This commit is contained in:
parent
2af9561316
commit
c119ab9db0
3 changed files with 8 additions and 3 deletions
|
@ -4,7 +4,7 @@ clearStore
|
|||
|
||||
export unreachable=$(nix add-to-store ./recursive.sh)
|
||||
|
||||
nix build -o $TEST_ROOT/result -L '(
|
||||
nix --experimental-features 'nix-command recursive-nix' build -o $TEST_ROOT/result -L '(
|
||||
with import ./config.nix;
|
||||
with import <nix/config.nix>;
|
||||
mkDerivation {
|
||||
|
@ -15,6 +15,8 @@ nix build -o $TEST_ROOT/result -L '(
|
|||
# Note: this is a string without context.
|
||||
unreachable = builtins.getEnv "unreachable";
|
||||
|
||||
requiredSystemFeatures = [ "recursive-nix" ];
|
||||
|
||||
buildCommand = '\'\''
|
||||
mkdir $out
|
||||
PATH=${nixBinDir}:$PATH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue