mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
realiseContext(): Add derivation outputs to the allowed paths
This makes import-from-derivation work in restricted mode again.
This commit is contained in:
parent
f24e726ba5
commit
43f8ef73c6
2 changed files with 26 additions and 10 deletions
|
@ -36,3 +36,5 @@ ln -sfn $(pwd)/restricted.nix $TEST_ROOT/restricted.nix
|
|||
(! nix-instantiate --eval --restrict-eval $TEST_ROOT/restricted.nix -I $TEST_ROOT)
|
||||
(! nix-instantiate --eval --restrict-eval $TEST_ROOT/restricted.nix -I .)
|
||||
nix-instantiate --eval --restrict-eval $TEST_ROOT/restricted.nix -I $TEST_ROOT -I .
|
||||
|
||||
[[ $(nix eval --raw --restrict-eval -I . '(builtins.readFile "${import ./simple.nix}/hello")') == 'Hello World!' ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue