Add command "nix why-depends"
Add command "nix why-depends"

This command shows why a package has another package in its runtime
closure. For example, to see why VLC has libdrm.dev in its closure:

  $ nix why-depends nixpkgs.vlc nixpkgs.libdrm.dev
  /nix/store/g901z9pcj0n5yy5n6ykxk3qm4ina1d6z-vlc-2.2.5.1:
    lib/libvlccore.so.8.0.0: …nfig:/nix/store/405lmx6jl8lp0ad1vrr6j498chrqhz8g-libdrm-2.4.75-d…

  /nix/store/s3nm7kd8hlcg0facn2q1ff2n7wrwdi2l-mesa-noglu-17.0.7-dev:
    nix-support/propagated-native-build-inputs: …-dev /nix/store/405lmx6jl8lp0ad1vrr6j498chrqhz8g-libdrm-2.4.75-d…

Thus, VLC's lib/libvlccore.so.8.0.0 as well as mesa-noglu's
nix-support/propagated-native-build-inputs cause the dependency.

shlevy/nix,NixOS/nix,dtzWill/nix,peti/nix,rycee/nix,vcunat/nix,NixOS/nix,NixOS/nix,zimbatm/nix,shlevy/nix,rycee/nix,pikajude/nix,pikajude/nix,vcunat/nix,peti/nix,ehmry/nix,NixOS/nix,peti/nix,vcunat/nix,dezgeg/nix,layus/nix,layus/nix,dtzWill/nix,peti/nix,ehmry/nix,layus/nix,dezgeg/nix,rycee/nix,dtzWill/nix,dtzWill/nix,zimbatm/nix,ehmry/nix,ehmry/nix,pikajude/nix,shlevy/nix,ehmry/nix,ehmry/nix,dezgeg/nix,zimbatm/nix,vcunat/nix,dezgeg/nix,layus/nix,rycee/nix,peti/nix,shlevy/nix,rycee/nix,dtzWill/nix,zimbatm/nix,shlevy/nix,dezgeg/nix,NixOS/nix,layus/nix