nix why-depends

Show why a package depends on another package. More information: https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-why-depends.html.

nix why-depends {{/run/current-system}} {{/nix/store/...}}

nix why-depends --derivation {{nixpkgs#dependent}} {{nixpkgs#dependency}}