diff options
Diffstat (limited to 'scripts/why-depends')
| -rwxr-xr-x | scripts/why-depends | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/why-depends b/scripts/why-depends new file mode 100755 index 00000000..59f8d25b --- /dev/null +++ b/scripts/why-depends @@ -0,0 +1,14 @@ +#! /usr/bin/env sh + +package="$1" +version="$2" +shift 2 + +host="$(hostname)" + +fd "$package-$version" /nix/store --type directory | while read -r dir; do + nix why-depends "$@" ".#nixosConfigurations.$host.config.system.build.toplevel" "$dir" +done + + +# vim: ft=sh |
