1 { lib ? import (<nixpkgs> + "/lib")
23 importing-args = { inherit lib mylib; };
24 file-names = attrNames
27 ((type == "directory")
28 -> pathExists ./. + "/${name}/default.nix")
31 -> (hasSuffix ".nix" name && name != "default.nix"))
35 attrs = map (name: import (./. + "/${name}") importing-args) file-names;
37 foldl' (a: b: a // b) { } attrs;