about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-08-06T17·48+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-08-06T17·48+0000
commitc7101dac0bd2631e50846194fc841ef5ef77461f (patch)
tree597a2058c70f6000ade9f2f48ef9e998f70ce762 /tests
parent1578b2261d28003c8c1459041302e1f3c1921c43 (diff)
* Allow redirections in search path entries. E.g. if you have a
  directory

    /home/eelco/src/stdenv-updates

  that you want to use as the directory for import such as

    with (import <nixpkgs> { });

  then you can say

    $ nix-build -I nixpkgs=/home/eelco/src/stdenv-updates

Diffstat (limited to 'tests')
-rw-r--r--tests/lang/eval-okay-search-path.exp2
-rw-r--r--tests/lang/eval-okay-search-path.flags2
-rw-r--r--tests/lang/eval-okay-search-path.nix2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/lang/eval-okay-search-path.exp b/tests/lang/eval-okay-search-path.exp
index d1cc1b4e5215..d0bc8c5e86b2 100644
--- a/tests/lang/eval-okay-search-path.exp
+++ b/tests/lang/eval-okay-search-path.exp
@@ -1 +1 @@
-"abc"
+"abcc"
diff --git a/tests/lang/eval-okay-search-path.flags b/tests/lang/eval-okay-search-path.flags
index d7feb29e121e..a28e6821004a 100644
--- a/tests/lang/eval-okay-search-path.flags
+++ b/tests/lang/eval-okay-search-path.flags
@@ -1 +1 @@
--I lang/dir1 -I lang/dir2
\ No newline at end of file
+-I lang/dir1 -I lang/dir2 -I dir5=lang/dir3
\ No newline at end of file
diff --git a/tests/lang/eval-okay-search-path.nix b/tests/lang/eval-okay-search-path.nix
index cc1df08f0185..02920149b5be 100644
--- a/tests/lang/eval-okay-search-path.nix
+++ b/tests/lang/eval-okay-search-path.nix
@@ -1,3 +1,3 @@
-import <a.nix> + import <b.nix> + import <c.nix>
+import <a.nix> + import <b.nix> + import <c.nix> + import <dir5/c.nix>