2006-12-12 23:05:01 +00:00
|
|
|
derivation {
|
|
|
|
name = "filter";
|
|
|
|
system = "@system@";
|
|
|
|
builder = "@shell@";
|
|
|
|
args = ["-e" "-x" (builtins.toFile "builder" "PATH=@testPath@; ln -s $input $out")];
|
2007-01-15 08:54:51 +00:00
|
|
|
input =
|
2007-01-29 14:23:09 +00:00
|
|
|
let filter = path: type:
|
|
|
|
type != "symlink"
|
|
|
|
&& baseNameOf path != "foo"
|
|
|
|
&& !((import ./lang/lib.nix).hasSuffix ".bak" (baseNameOf path));
|
2007-01-15 08:54:51 +00:00
|
|
|
in builtins.filterSource filter ./test-tmp/filterin;
|
2006-12-12 23:05:01 +00:00
|
|
|
}
|