with import ./lib.nix; with builtins; assert pathExists ; assert length nixPath == 6; assert length (filter (x: x.prefix == "nix") nixPath) == 1; assert length (filter (x: baseNameOf x.path == "dir4") nixPath) == 1; import + import + import + import + (let nixPath = [ { path = ./dir2; } { path = ./dir1; } ]; in import )