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-29T14·23+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-01-29T14·23+0000
commit7349bd0176b8a8ced3a017bb5d0e9ebb30570722 (patch)
tree0c550418b620ecd81d386089b59e8d0272c0c565 /tests/filter-source.nix.in
parent7dedbd896ade732ab2fe88a5fe88e069cb329fa5 (diff)
New primitives:
* `sub' to subtract two numbers.
* `stringLength' to get the length of a string.
* `substring' to get a substring of a string.  These should be enough
  to allow most string operations to be expressed.

Diffstat (limited to 'tests/filter-source.nix.in')
-rw-r--r--tests/filter-source.nix.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/filter-source.nix.in b/tests/filter-source.nix.in
index 8493835c2b93..6fd494794e0c 100644
--- a/tests/filter-source.nix.in
+++ b/tests/filter-source.nix.in
@@ -4,6 +4,9 @@ derivation {
   builder = "@shell@";
   args = ["-e" "-x" (builtins.toFile "builder" "PATH=@testPath@; ln -s $input $out")];
   input =
-    let filter = path: type: type != "symlink" && baseNameOf (toString path) != "foo";
+    let filter = path: type:
+      type != "symlink"
+      && baseNameOf path != "foo"
+      && !((import ./lang/lib.nix).hasSuffix ".bak" (baseNameOf path));
     in builtins.filterSource filter ./test-tmp/filterin;
 }