blob: 01471ce2701ae31b3286e605896d7a818caa221e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#! /usr/bin/env sh
package="$1"
version="$2"
shift 2
if [ "$1" = "--running" ]; then
shift 1
base="/run/current-system"
else
host="$(hostname)"
base=".#nixosConfigurations.$host.config.system.build.toplevel"
fi
fd "$package-$version$" /nix/store --type directory --threads 1 --exec nix why-depends "$@" "$base"
# vim: ft=sh
|