about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-12-01T16·41+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-12-01T16·41+0000
commitb12b21825c949ef9b9327c6a0c9e2d5601aaf0b2 (patch)
treead58ff48bd39e25f3ea67c96a00a510b40fb7a77 /tests
parent23c38a04ccba4469b9aa98167532c236beeee0a0 (diff)
* Allow '<nixexpr>' syntax to be used in nix-instantiate, nix-build
  and nix-env, e.g.,

  $ nix-env -f '<nixpkgs>' -i patchelf

  or

  $ nix-build '<nixos/tests>' -A login.test

Diffstat (limited to 'tests')
-rw-r--r--tests/user-envs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/user-envs.sh b/tests/user-envs.sh
index 025a5ff81716..5037e28b916b 100644
--- a/tests/user-envs.sh
+++ b/tests/user-envs.sh
@@ -36,7 +36,7 @@ nix-env -p $profiles/test -q '*' | grep -q foo-2.0pre1
 test "$($profiles/test/bin/foo)" = "foo-2.0pre1"
 
 # Upgrade "foo": should install foo-2.0.
-nix-env -p $profiles/test -f ./user-envs.nix -u foo
+NIX_PATH=nixpkgs=./user-envs.nix nix-env -p $profiles/test -f '<nixpkgs>' -u foo
 
 # Query installed: should contain foo-2.0 now.
 test "$(nix-env -p $profiles/test -q '*' | wc -l)" -eq 1