commands.sh

nix why-depends

all

Show why a package depends on another package.

More info →

Examples (2)

Show why the currently running NixOS system requires a certain store path

nix why-depends /run/current-system /nix/store/checksum-package-version.ext

Show why a package from nixpkgs requires another package as a _build-time_ dependency

nix why-depends --derivation nixpkgs#dependent nixpkgs#dependency
made by @shridhargupta | data from tldr-pages