mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
12 lines
348 B
Nix
12 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;
|
|
}
|