summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-01 21:51:54 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-01 21:51:54 +0100
commit65bf71bb6ef05ce684924a1dc248bb2e8e2869fb (patch)
treeba28bd03b0d9b8312ac7dca9aa97412ce7b0327b
parentfix(by-name-overlay): Actually return paths (diff)
downloadnix-library-65bf71bb6ef05ce684924a1dc248bb2e8e2869fb.zip
fix(by-name-overlay): Correctly display the `rawPath` in warnings prime
Without the `builtins.toString` nix will just copy the path to the store
and return that. With the `builtins.toString` it actually prints the
real path.
Diffstat (limited to '')
-rw-r--r--by-name-overlay.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/by-name-overlay.nix b/by-name-overlay.nix
index 4253aa4..2d03e75 100644
--- a/by-name-overlay.nix
+++ b/by-name-overlay.nix
@@ -109,7 +109,7 @@ assert fileRegex == null -> fileName != null; let
         # The `namesForShard` function should have already printed a warning.
         [null]
       else if (builtins.attrValues paths) == []
-      then warn "'${fileDisplay}' did not match anything in ${rawPath}. Skipped" [null]
+      then warn "'${fileDisplay}' did not match anything in ${builtins.toString rawPath}. Skipped" [null]
       else mapAttrsToList checkPath paths;
 
     filterNull = list: builtins.filter (value: value != null) list;