mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
e4b0666f8e
"directory", "symlink") as the second argument to the filter predicate.
9 lines
321 B
Nix
9 lines
321 B
Nix
derivation {
|
|
name = "filter";
|
|
system = "@system@";
|
|
builder = "@shell@";
|
|
args = ["-e" "-x" (builtins.toFile "builder" "PATH=@testPath@; ln -s $input $out")];
|
|
input =
|
|
let filter = path: type: type != "symlink" && baseNameOf (toString path) != "foo";
|
|
in builtins.filterSource filter ./test-tmp/filterin;
|
|
}
|