Merge pull request #177200 from andersk/overlays-emacs-locks
This commit is contained in:
@@ -47,7 +47,12 @@ in
|
||||
# it's a directory, so the set of overlays from the directory, ordered lexicographically
|
||||
let content = builtins.readDir path; in
|
||||
map (n: import (path + ("/" + n)))
|
||||
(builtins.filter (n: builtins.match ".*\\.nix" n != null || builtins.pathExists (path + ("/" + n + "/default.nix")))
|
||||
(builtins.filter
|
||||
(n:
|
||||
(builtins.match ".*\\.nix" n != null &&
|
||||
# ignore Emacs lock files (.#foo.nix)
|
||||
builtins.match "\\.#.*" n == null) ||
|
||||
builtins.pathExists (path + ("/" + n + "/default.nix")))
|
||||
(builtins.attrNames content))
|
||||
else
|
||||
# it's a file, so the result is the contents of the file itself
|
||||
|
||||
Reference in New Issue
Block a user