mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
* Refactoring: renamed *.nix.in to *.nix.
This commit is contained in:
parent
2d5114452d
commit
51e7e32c3b
22 changed files with 209 additions and 264 deletions
12
tests/filter-source.nix
Normal file
12
tests/filter-source.nix
Normal file
|
@ -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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue