about summary refs log tree commit diff
path: root/tests/filter-source.nix.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-01-15T08·54+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-01-15T08·54+0000
commite4b0666f8eee3fc48f37c0cd3fd194c27652173c (patch)
tree4b4b8ad37e86ec30c45952c364866d1be1437901 /tests/filter-source.nix.in
parent63f3ce6d9a26cb46a2f066dd9c5f2af25b3610df (diff)
* builtins.filterSource: pass the type of the file ("regular",
  "directory", "symlink") as the second argument to the filter
  predicate.

Diffstat (limited to 'tests/filter-source.nix.in')
-rw-r--r--tests/filter-source.nix.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/filter-source.nix.in b/tests/filter-source.nix.in
index 2b5c23d317..8493835c2b 100644
--- a/tests/filter-source.nix.in
+++ b/tests/filter-source.nix.in
@@ -3,5 +3,7 @@ derivation {
   system = "@system@";
   builder = "@shell@";
   args = ["-e" "-x" (builtins.toFile "builder" "PATH=@testPath@; ln -s $input $out")];
-  input = builtins.filterSource (path: baseNameOf (toString path) != "foo") ./test-tmp/filterin;
+  input =
+    let filter = path: type: type != "symlink" && baseNameOf (toString path) != "foo";
+    in builtins.filterSource filter ./test-tmp/filterin;
 }