diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-01-29 14:46:54 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-01-29 14:46:54 +0100 |
commit | eb911f4d8ce0884b726b29a78535058077390e90 (patch) | |
tree | 36016b17618d277dacdb7056c6f9ad0bea4434a5 | |
parent | test(shards_finalize): Init (diff) | |
download | nix-library-eb911f4d8ce0884b726b29a78535058077390e90.zip |
fix(by-name-overlay): Return absolute paths again
This was a regression.
-rw-r--r-- | by-name-overlay.nix | 6 |
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 |