[Nix-dev] Some cgi scripts for browsing nix-store dependency graph
Michael Raskin
7c6f434c at mail.ru
Sun Sep 30 23:49:10 CEST 2007
Hello.
Attached file contains scripts for visualizing nix-store graphviz
output. Unpack it in a separate subdir in your public_html
(services.httpd.noUserDir = false supposed). Run build-system-dot.sh to
create .dot files and .idx indexes (specifying full names in http
requests would cause worries about different symbols in names). Check
that fonts.extraFonts contains
(pkgs.ghostscript + "/share/ghostscript/fonts/") . Navigate to the
folder you created using browser. You'll have to enter graph file name
(system-rt.dot for runtime dependencies or system-bt.dot for
compiletime) and part of the store entry name you want (like clisp for
common lisp). You'll be taken to graph view. There you will see graphviz
image on top (it includes one-hop neighbourhood of selected entries),
and lower you'll see links: you can add neighbours (left column), or
unselect vertices (right column).
WARNING: there is a build-time package stdenv-linux. Its neighbourhood
will hang you system (the image is a bit too large) - it was the reason
I wrote the scripts in the first place. So you do not forget to specify
version if you are really interested in linux kernel build-time
dependencies.
As usually, comments and suggestions are welcome.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graphviz-viewer.tar.bz2
Type: application/octet-stream
Size: 2744 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20071001/f40c7f0c/attachment.obj
More information about the nix-dev
mailing list