nix-super/tests/functional/path.nix

15 lines
426 B
Nix
Raw Normal View History

with import "${builtins.getEnv "_NIX_TEST_BUILD_DIR"}/config.nix";
2020-07-31 00:37:44 +03:00
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));
};
}