summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--by-name-overlay.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/by-name-overlay.nix b/by-name-overlay.nix
index da53c5a..c36a6ca 100644
--- a/by-name-overlay.nix
+++ b/by-name-overlay.nix
@@ -88,8 +88,10 @@ assert fileRegex == null -> fileName != null; let
then nameValuePair name value
else nameValuePair name null) (builtins.readDir rawPath));
- checkPath = path: type:
- if builtins.pathExists "${rawPath}/${path}"
+ checkPath = pathSegment: type: let
+ path = "${rawPath}/${pathSegment}";
+ in
+ if builtins.pathExists path
then
if toplevelType != "directory"
then