about summary refs log tree commit diff
path: root/tests/restricted.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-02-06T14·38+0100
committerEelco Dolstra <edolstra@gmail.com>2018-02-06T14·38+0100
commit43f8ef73c6aeb23aee40d485556004d6262d4e3b (patch)
treeca24bc90050fc3f77a7691a0de788533134de5cb /tests/restricted.sh
parentf24e726ba53e23235d33d8bdc7877ad3a8632fde (diff)
realiseContext(): Add derivation outputs to the allowed paths
This makes import-from-derivation work in restricted mode again.
Diffstat (limited to 'tests/restricted.sh')
-rw-r--r--tests/restricted.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/restricted.sh b/tests/restricted.sh
index 6c0392facf31..0605383cc86a 100644
--- a/tests/restricted.sh
+++ b/tests/restricted.sh
@@ -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!' ]]