Skip to content

Azeirah/nix-deps-treemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dependency graph treemap visualization! :)

Shows disk space used per dependency.

image

Instructions

  1. Clone repo
  2. Run the bash script on a derivation, eg ./deps.sh /nix/store/z49g31nnd5hkf2di6gp693mlsp23xdgh-python3.10-remarks-0.3.10
  3. Open the html file
  4. Open the generated JSON file

Get derivation path for a flake build

If you have a flake that builds a package, you can get the path with nix build .#my-derivation --no-link --print-out-paths

What the heck is a treemap?

Introduced by Ben Shneiderman in 1991, a treemap recursively subdivides area into rectangles according to each node’s associated value. D3’s treemap implementation supports an extensible tiling method: the default squarified method seeks to generate rectangles with a golden aspect ratio; this offers better readability and size estimation than slice-and-dice, which simply alternates between horizontal and vertical subdivision by depth.

source

About

Visualize your nix derivation dependency graph as an interactive treemap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published