···2626 };
27272828 files = builtins.filter (n: n != "default") (pkgs.lib.mapAttrsToList (name: type: let
2929- m = builtins.match "(.*)\.nix" name;
2929+ m = builtins.match "(.*)\\.nix" name;
3030 in if m == null then "default" else builtins.head m) (builtins.readDir ./.));
3131 in (builtins.listToAttrs (map (name: {
3232 inherit name;
+1-1
pkgs/top-level/impure.nix
···5050 # it's a directory, so the set of overlays from the directory, ordered lexicographically
5151 let content = readDir path; in
5252 map (n: import (path + ("/" + n)))
5353- (builtins.filter (n: builtins.match ".*\.nix" n != null || pathExists (path + ("/" + n + "/default.nix")))
5353+ (builtins.filter (n: builtins.match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix")))
5454 (attrNames content))
5555 else
5656 # it's a file, so the result is the contents of the file itself