summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-01-29 14:46:54 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-01-29 14:46:54 +0100
commiteb911f4d8ce0884b726b29a78535058077390e90 (patch)
tree36016b17618d277dacdb7056c6f9ad0bea4434a5
parenttest(shards_finalize): Init (diff)
downloadnix-library-eb911f4d8ce0884b726b29a78535058077390e90.zip
fix(by-name-overlay): Return absolute paths again
This was a regression.
-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