about summary refs log tree commit diff stats
path: root/scripts/why-depends
blob: 59f8d25b65740fce555d2212f97d9b9549fab794 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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