3 let lib = super.lib; in
5 lib = (super.lib or {}) // {
6 loadFile = name: toFile (baseNameOf (toString name)) (readFile name);
9 let dir = readDir curr; in
10 let files = lib.filterAttrs (name: type:
12 match pattern name != null) dir; in
13 let dirs = lib.filterAttrs (name: type: type == "directory") dir; in
14 map (name: "${curr}/${name}") (attrNames files) ++
15 lib.concatMap (name: go "${curr}/${name}") (attrNames dirs)