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