mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
Revert "getDefaultNixPath: actually respect {restrict,pure}-eval
"
This reverts commit 1cba5984a6
.
This commit is contained in:
parent
e928c72cf9
commit
dd93c12c6a
4 changed files with 17 additions and 31 deletions
|
@ -17,9 +17,6 @@ nix-instantiate --restrict-eval --eval -E 'builtins.readDir ../src/nix-channel'
|
|||
(! nix-instantiate --restrict-eval --eval -E 'let __nixPath = [ { prefix = "foo"; path = ./.; } ]; in <foo>')
|
||||
nix-instantiate --restrict-eval --eval -E 'let __nixPath = [ { prefix = "foo"; path = ./.; } ]; in <foo>' -I src=.
|
||||
|
||||
# no default NIX_PATH
|
||||
(unset NIX_PATH; ! nix-instantiate --restrict-eval --find-file .)
|
||||
|
||||
p=$(nix eval --raw --expr "builtins.fetchurl file://$(pwd)/restricted.sh" --impure --restrict-eval --allowed-uris "file://$(pwd)")
|
||||
cmp $p restricted.sh
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue