1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

* builtins.filterSource: pass the type of the file ("regular",

"directory", "symlink") as the second argument to the filter
  predicate.
This commit is contained in:
Eelco Dolstra 2007-01-15 08:54:51 +00:00
parent 63f3ce6d9a
commit e4b0666f8e
3 changed files with 23 additions and 2 deletions

View file

@ -5,9 +5,11 @@ mkdir $TEST_ROOT/filterin
mkdir $TEST_ROOT/filterin/foo
touch $TEST_ROOT/filterin/foo/bar
touch $TEST_ROOT/filterin/xyzzy
ln -s xyzzy $TEST_ROOT/filterin/link
$NIX_BIN_DIR/nix-build ./filter-source.nix -o $TEST_ROOT/filterout
set -x
test ! -e $TEST_ROOT/filterout/foo/bar
test -e $TEST_ROOT/filterout/xyzzy
test ! -L $TEST_ROOT/filterout/link