summary refs log tree commit diff
path: root/tests/lang
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-08-06 17:48:57 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-08-06 17:48:57 +0000
commitc7101dac0bd2631e50846194fc841ef5ef77461f (patch)
tree597a2058c70f6000ade9f2f48ef9e998f70ce762 /tests/lang
parent1578b2261d28003c8c1459041302e1f3c1921c43 (diff)
downloadguix-c7101dac0bd2631e50846194fc841ef5ef77461f.tar.gz
* 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/lang')
-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 d1cc1b4e52..d0bc8c5e86 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 d7feb29e12..a28e682100 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 cc1df08f01..02920149b5 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>