[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: graphviz: Enable Guile library.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] gnu: graphviz: Enable Guile library. |
Date: |
Mon, 09 May 2016 22:37:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Roel Janssen <address@hidden> 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’.
- [PATCH] gnu: graphviz: Enable Guile library., Roel Janssen, 2016/05/09
- Re: [PATCH] gnu: graphviz: Enable Guile library.,
Ludovic Courtès <=
- Re: [PATCH] gnu: graphviz: Enable Guile library., Roel Janssen, 2016/05/09
- Re: [PATCH] gnu: graphviz: Enable Guile library., Danny Milosavljevic, 2016/05/10
- Re: [PATCH] gnu: graphviz: Enable Guile library., Roel Janssen, 2016/05/10
- Re: [PATCH] gnu: graphviz: Enable Guile library., Roel Janssen, 2016/05/10
- Re: [PATCH] gnu: graphviz: Enable Guile library., Ludovic Courtès, 2016/05/10
- Re: [PATCH] gnu: graphviz: Enable Guile library., Roel Janssen, 2016/05/10
- Re: [PATCH] gnu: graphviz: Enable Guile library., Ludovic Courtès, 2016/05/11
- Re: [PATCH] gnu: graphviz: Enable Guile library., Roel Janssen, 2016/05/11
- Re: [PATCH] gnu: graphviz: Enable Guile library., Ludovic Courtès, 2016/05/11
- Re: [PATCH] gnu: graphviz: Enable Guile library., Roel Janssen, 2016/05/11