As there are currently still 130 pathes in the store (straight after rebuild + GC), I am trying to find out where they come from:
$ ll /nix/store | grep python2 | wc -l
130
$ for p in /nix/store/*-python2.7-*; do nix why-depends /run/current-system/sw "$p"; done
'/nix/store/s2f4mc87cbkynifbl0fbkrkq90j2xr70-system-path' does not depend on '/nix/store/4gh9k680nd2x41z0lp0rz75h1mx2583d-python2.7-bootstrapped-pip-19.2.3'
[…]
$ for p in /nix/store/*-python2.7-*; do nix why-depends ~/.nix-profile "$p"; done
[…]
All printed lines are just “does not deped on”… So is there a way to ask nix for the reverse of why-depends
? Such that it tells me which profile or gcroot is holding on those pathes?