silencing warning

This commit is contained in:
John Lancaster
2026-04-19 15:13:56 -05:00
parent 0c91b1d493
commit 235cd297c5
+15 -1
View File
@@ -29,8 +29,9 @@
perSystem = { system, pkgs, self', ... }: {
packages.shell-tools = inputs.wrappers.lib.wrapPackage {
inherit pkgs;
# binName = "show-tools";
package = (pkgs.symlinkJoin {
name = "shell-tools";
name = "show-tools";
paths = with pkgs; [
nh
ripgrep
@@ -44,6 +45,19 @@
hostname
iproute2
direnv
(writeShellApplication {
name = "show-tools";
text = ''
IFS=':' read -r -a path_dirs <<< "''${PATH:-}"
for dir in "''${path_dirs[@]}"; do
[[ "$dir" == */bin ]] || continue
[[ -d "$dir" ]] || continue
printf '%s\n' "$dir"/*
done
'';
})
];
});
};