2019-11-04 12:23:58 +00:00
|
|
|
source common.sh
|
|
|
|
|
2023-04-20 00:36:33 +00:00
|
|
|
enableFeatures 'recursive-nix'
|
2021-09-13 12:29:42 +00:00
|
|
|
restartDaemon
|
|
|
|
|
2019-11-04 12:23:58 +00:00
|
|
|
clearStore
|
|
|
|
|
2020-06-25 16:26:34 +00:00
|
|
|
rm -f $TEST_ROOT/result
|
|
|
|
|
2020-07-24 18:38:56 +00:00
|
|
|
export unreachable=$(nix store add-path ./recursive.sh)
|
2019-11-04 12:23:58 +00:00
|
|
|
|
2023-04-19 23:36:05 +00:00
|
|
|
NIX_BIN_DIR=$(dirname $(type -p nix)) nix --extra-experimental-features 'nix-command recursive-nix' build -o $TEST_ROOT/result -L --impure --file ./recursive.nix
|
2019-11-04 12:23:58 +00:00
|
|
|
|
|
|
|
[[ $(cat $TEST_ROOT/result/inner1) =~ blaat ]]
|
|
|
|
|
|
|
|
# Make sure the recursively created paths are in the closure.
|
|
|
|
nix path-info -r $TEST_ROOT/result | grep foobar
|
|
|
|
nix path-info -r $TEST_ROOT/result | grep fnord
|
|
|
|
nix path-info -r $TEST_ROOT/result | grep inner1
|