···26 };
2728 files = builtins.filter (n: n != "default") (pkgs.lib.mapAttrsToList (name: type: let
29- m = builtins.match "(.*)\.nix" name;
30 in if m == null then "default" else builtins.head m) (builtins.readDir ./.));
31 in (builtins.listToAttrs (map (name: {
32 inherit name;
···26 };
2728 files = builtins.filter (n: n != "default") (pkgs.lib.mapAttrsToList (name: type: let
29+ m = builtins.match "(.*)\\.nix" name;
30 in if m == null then "default" else builtins.head m) (builtins.readDir ./.));
31 in (builtins.listToAttrs (map (name: {
32 inherit name;
+1-1
pkgs/top-level/impure.nix
···50 # it's a directory, so the set of overlays from the directory, ordered lexicographically
51 let content = readDir path; in
52 map (n: import (path + ("/" + n)))
53- (builtins.filter (n: builtins.match ".*\.nix" n != null || pathExists (path + ("/" + n + "/default.nix")))
54 (attrNames content))
55 else
56 # it's a file, so the result is the contents of the file itself
···50 # it's a directory, so the set of overlays from the directory, ordered lexicographically
51 let content = readDir path; in
52 map (n: import (path + ("/" + n)))
53+ (builtins.filter (n: builtins.match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix")))
54 (attrNames content))
55 else
56 # it's a file, so the result is the contents of the file itself