blob: 883c3c41bb1de34d01bb36a5fac27e2d9b073962 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
with import ./config.nix;
mkDerivation {
name = "filter";
builder = builtins.toFile "builder" "ln -s $input $out";
input =
builtins.path {
path = ((builtins.getEnv "TEST_ROOT") + "/filterin");
filter = path: type:
type != "symlink"
&& baseNameOf path != "foo"
&& !((import ./lang/lib.nix).hasSuffix ".bak" (baseNameOf path));
};
}
|