From 51e7e32c3bf7c2fb5045b0655c2edc1fbf347455 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 17 Mar 2009 17:11:55 +0000 Subject: * Refactoring: renamed *.nix.in to *.nix. --- tests/filter-source.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/filter-source.nix (limited to 'tests/filter-source.nix') diff --git a/tests/filter-source.nix b/tests/filter-source.nix new file mode 100644 index 000000000000..a620f0fda5c4 --- /dev/null +++ b/tests/filter-source.nix @@ -0,0 +1,12 @@ +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; +} -- cgit 1.4.1