[Nix-dev] Tracking down dependencies

Andreas Herrmann andreash87 at gmx.ch
Thu Jan 29 10:49:23 CET 2015


On Wednesday 28 January 2015 13:23:08 Thomas Bereknyei wrote:
> During a recent `nixos-rebuild switch --upgrade` I noticed gtk+ being
> downloaded from cache. Is there a quick way to discover what is causing
> that to be needed? [Rather than going through all of my configuration.nix
> packages one-by-one?] This question is also generic, is there a way to do
> this in general?

You can use `nix-store -q --referrers /nix/store/<your-derivation>.drv` to list every derivation that depends on <your-derivation>.

Best, Andreas


More information about the nix-dev mailing list