* Generate SVG instead of PNG, which is much faster and smaller. I

[?]
Mar 31, 2009, 3:59 PM
SUU3PSXUDJCFLJDYUFSEFHKTMZGWUQZXDWP73FRAF4BS36WTRIKAC

Dependencies

  • [2] ALIOF64I * Use IO::Handles instead of old school filehandles. This ensures
  • [3] OD5FSS5A * Quick hack to allow viewing of dependency graphs (via nix-store -q

Change contents

  • replacement in src/lib/Hydra/View/NixDepGraph.pm at line 10
    [3.1149][3.1149:1194]()
    $c->response->content_type('image/png');
    [3.1149]
    [3.1194]
    $c->response->content_type('image/svg+xml');
  • replacement in src/lib/Hydra/View/NixDepGraph.pm at line 16
    [2.84][2.84:175]()
    open $fh, "nix-store --query --graph @storePaths | dot -Tpng -Gbgcolor=transparent |";
    [2.84]
    [3.1415]
    open $fh, "nix-store --query --graph @storePaths | dot -Tsvg:cairo -Gdpi=100 -Gsize=20,20 -Gbgcolor=transparent |";