2024-11-01 15:56:50 +02:00
|
|
|
with import "${builtins.getEnv "_NIX_TEST_BUILD_DIR"}/config.nix";
|
2009-03-17 19:11:55 +02:00
|
|
|
|
|
|
|
mkDerivation {
|
2006-12-13 01:05:01 +02:00
|
|
|
name = "filter";
|
2009-03-17 19:11:55 +02:00
|
|
|
builder = builtins.toFile "builder" "ln -s $input $out";
|
2007-01-15 10:54:51 +02:00
|
|
|
input =
|
2007-01-29 16:23:09 +02:00
|
|
|
let filter = path: type:
|
|
|
|
type != "symlink"
|
|
|
|
&& baseNameOf path != "foo"
|
|
|
|
&& !((import ./lang/lib.nix).hasSuffix ".bak" (baseNameOf path));
|
2016-03-24 15:38:31 +02:00
|
|
|
in builtins.filterSource filter ((builtins.getEnv "TEST_ROOT") + "/filterin");
|
2006-12-13 01:05:01 +02:00
|
|
|
}
|