2009-03-17 17:11:55 +00:00
|
|
|
with import ./config.nix;
|
|
|
|
|
|
|
|
mkDerivation {
|
2006-12-12 23:05:01 +00:00
|
|
|
name = "filter";
|
2009-03-17 17:11:55 +00:00
|
|
|
builder = builtins.toFile "builder" "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));
|
2016-03-24 13:38:31 +00:00
|
|
|
in builtins.filterSource filter ((builtins.getEnv "TEST_ROOT") + "/filterin");
|
2006-12-12 23:05:01 +00:00
|
|
|
}
|