diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-04-08 23:19:19 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-04-08 23:19:19 +0200 |
commit | ee1254d4f50f5908fa4913253a643d14cb263c45 (patch) | |
tree | 9442b97be61b4286c0a4ae12a5a9bc54a9e0593f /tests/pure-eval.sh | |
parent | 6a4c7fb9759dbbf5ddaf0ebd00921d0f8045f355 (diff) |
nix: Add --impure as a shorter alias of --no-pure-eval
Diffstat (limited to 'tests/pure-eval.sh')
-rw-r--r-- | tests/pure-eval.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pure-eval.sh b/tests/pure-eval.sh index 307942940..6e2c6962d 100644 --- a/tests/pure-eval.sh +++ b/tests/pure-eval.sh @@ -4,7 +4,7 @@ clearStore nix eval '(assert 1 + 2 == 3; true)' -[[ $(nix eval --no-pure-eval '(builtins.readFile ./pure-eval.sh)') =~ clearStore ]] +[[ $(nix eval --impure '(builtins.readFile ./pure-eval.sh)') =~ clearStore ]] (! nix eval '(builtins.readFile ./pure-eval.sh)') @@ -13,6 +13,6 @@ nix eval '(assert 1 + 2 == 3; true)' (! nix-instantiate --pure-eval ./simple.nix) -[[ $(nix eval --no-pure-eval "((import (builtins.fetchurl { url = file://$(pwd)/pure-eval.nix; })).x)") == 123 ]] +[[ $(nix eval --impure "((import (builtins.fetchurl { url = file://$(pwd)/pure-eval.nix; })).x)") == 123 ]] (! nix eval "((import (builtins.fetchurl { url = file://$(pwd)/pure-eval.nix; })).x)") nix eval "((import (builtins.fetchurl { url = file://$(pwd)/pure-eval.nix; sha256 = \"$(nix hash-file pure-eval.nix --type sha256)\"; })).x)" |