about summary refs log tree commit diff stats
path: root/modules/by-name/ni/nix-index/command_not_found.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-17 13:42:24 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-17 13:42:24 +0200
commit1766939fad57b7acabcbebdf8efbcf82c4cbf49d (patch)
tree5dd5c728cfeeccbf1cc2e9323e81966a3a039aca /modules/by-name/ni/nix-index/command_not_found.sh
parentmodules/common: Activate `soispha.hardware` by default (diff)
downloadnixos-config-1766939fad57b7acabcbebdf8efbcf82c4cbf49d.zip
modules/nix-index/command_not_found_handler: Remove reference to shell_library
`ptmp` was previously (impurely) injected into this code, but is now no
longer available.
Diffstat (limited to '')
-rw-r--r--modules/by-name/ni/nix-index/command_not_found.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/by-name/ni/nix-index/command_not_found.sh b/modules/by-name/ni/nix-index/command_not_found.sh
index 5f7461e6..f650cf7b 100644
--- a/modules/by-name/ni/nix-index/command_not_found.sh
+++ b/modules/by-name/ni/nix-index/command_not_found.sh
@@ -58,7 +58,7 @@ EOF
 The program '$cmd' is currently not installed. It is provided by
 several packages. You can run it once with:
 EOF
-        awk --assign=toplevel="$toplevel" 'BEGIN{counter=0} {printf("%3s)", counter); printf("  nix shell %s#%s\n", toplevel, $1); counter+=1}' "$(ptmp "$attrs")"
+        echo "$attrs" | awk --assign=toplevel="$toplevel" 'BEGIN{counter=0} {printf("%3s)", counter); printf("  nix shell %s#%s\n", toplevel, $1); counter+=1}'
         ;;
     esac