Roel Janssen <[email protected]> skribis: > I would like to add graphviz's Guile interface to the package > definition. This introduces two new (top-level) dependencies to the > graphviz package: guile and swig. > > An example of the Guile interface: > (load-extension (string-append (getenv "HOME") > "/.guix-profile/lib/graphviz/guile/libgv_guile.so") "SWIG_init")
Doesn’t Graphviz provide a module that does this? Would be more convenient. > ;; Define the graph's nodes and edges. > (define my-graph (graph "G")) > (edge > (node my-graph "A") > (node my-graph "B")) > > ;; Set a lay-out and render it to a file. > (layout my-graph "dot") > (render my-graph "svg" "/home/roel/my-graph.svg") Indeed, I wonder why we didn’t try before. :-) > The patch is fairly straightforward, since all that is needed is include > the dependencies to the inputs: Could you check the output of ‘guix size’ before and after the change? Thanks! Ludo’.
