diff options
Diffstat (limited to 'tests/filter-source.nix.in')
-rw-r--r-- | tests/filter-source.nix.in | 5 |
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; } |