We have done it! The functional/lang framework has fully been migrated to functional2 :D closes: #856 Change-Id: I63ad8d7dbcd9b5267ca04af68df73b1ffa3d6461
16 lines
430 B
Nix
16 lines
430 B
Nix
{ filterin }:
|
|
|
|
with import ./config.nix;
|
|
|
|
mkDerivation {
|
|
name = "filter";
|
|
builder = builtins.toFile "builder" "ln -s $input $out";
|
|
input =
|
|
let filter = path: type:
|
|
type != "symlink"
|
|
&& (builtins.substring 0 (builtins.stringLength filterin) (builtins.toString path) == filterin)
|
|
&& baseNameOf path != "foo"
|
|
&& !(hasSuffix ".bak" (baseNameOf path));
|
|
in builtins.filterSource filter filterin;
|
|
}
|