Different words similar meaning?
--references
is NixOS speak for direct
package dependencies.
--requisites
list all. These work with the
nix-store
command.
$ readlink --canonicalize "$(type -P which)"
/nix/store/r78jv9xgxnvsm5vpasf5ldkc28pkri6r-which-2.21/bin/which
$ nix-store --query --references /nix/store/r78jv9xgxnvsm5vpasf5ldkc28pkri6r-which-2.21
/nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163
which
directly depends on
glibc
. Swap --references
to
--referrers
for paths pointing to which
.
On Guix, list/draw dependencies with
guix graph
.
guix graph --type=references which