symphorien / nix-du

Visualise which gc-roots to delete to free some space in your nix store
GNU Lesser General Public License v3.0
371 stars 5 forks source link

feature request: Allow multiple --root arguments #22

Open anka-213 opened 3 months ago

anka-213 commented 3 months ago

I want to compare two closures and see what is shared and what is not. As far as I can tell, I can't do that with nix-du without first building a derivation that depends on both (or using nix-du on my entire system and filtering out the parts I'm interested in)?

Using multiple -r arguments gives the error:

error: the argument '--root <PATH>' cannot be used multiple times
symphorien commented 3 months ago

that makes sense however tbh I don't plan on spending much time on nix-du in the near future.

anka-213 commented 3 months ago

Thanks for the quick reply! Would you be open to a pull request for this?

symphorien commented 3 months ago

sure