1
0
Fork 0
forked from lix-project/lix
lix/tests/filter-source.nix
2009-03-17 17:11:55 +00:00

13 lines
348 B
Nix

with import ./config.nix;
mkDerivation {
name = "filter";
builder = builtins.toFile "builder" "ln -s $input $out";
input =
let filter = path: type:
type != "symlink"
&& baseNameOf path != "foo"
&& !((import ./lang/lib.nix).hasSuffix ".bak" (baseNameOf path));
in builtins.filterSource filter ./test-tmp/filterin;
}