lix/tests/filter-source.nix.in
Eelco Dolstra e4b0666f8e * builtins.filterSource: pass the type of the file ("regular",
"directory", "symlink") as the second argument to the filter
  predicate.
2007-01-15 08:54:51 +00:00

10 lines
321 B
Nix

derivation {
name = "filter";
system = "@system@";
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";
in builtins.filterSource filter ./test-tmp/filterin;
}