Skip to content

nikitawootten/flake-graph

Repository files navigation

flake-graph

built with nix

Visualize your Nix flake.lock!

This project provides facilities for parsing and analyzing flake.lock files.

Usage

$ nix shell github:nikitawootten/flake-graph nixpkgs#graphviz \
    --command sh -c 'flake-graph flake.lock | dot -Tsvg > flake-lock.svg'

Input sizes

Pass --size to annotate each input with the on-disk size of its source in the Nix store.

$ nix shell github:nikitawootten/flake-graph nixpkgs#graphviz \
    --command sh -c 'flake-graph --size flake.lock | dot -Tsvg > flake-lock.svg'

This invokes nix to resolve each input and may fetch inputs from the network if they are not already in the store.

Sample

image

Flake lock diagram of nikitawotten/infra

About

Visualize your Nix flake.lock!

Resources

License

Stars

6 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors