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