From: ludo@gnu.org (Ludovic Courtès)
To: Roel Janssen <roel@gnu.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] gnu: graphviz: Enable Guile library.
Date: Mon, 09 May 2016 22:37:09 +0200 [thread overview]
Message-ID: <87h9e7nf2i.fsf@gnu.org> (raw)
In-Reply-To: <87shxrpmbj.fsf@gnu.org> (Roel Janssen's message of "Mon, 09 May 2016 12:17:36 +0200")
Roel Janssen <roel@gnu.org> 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’.
next prev parent reply other threads:[~2016-05-09 20:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-09 10:17 [PATCH] gnu: graphviz: Enable Guile library Roel Janssen
2016-05-09 20:37 ` Ludovic Courtès [this message]
2016-05-09 20:54 ` Roel Janssen
2016-05-10 5:53 ` Danny Milosavljevic
2016-05-10 9:15 ` Roel Janssen
2016-05-10 13:08 ` Roel Janssen
2016-05-10 13:31 ` Ludovic Courtès
2016-05-10 14:07 ` Roel Janssen
2016-05-11 14:04 ` Ludovic Courtès
2016-05-11 14:48 ` Roel Janssen
2016-05-11 16:22 ` Ludovic Courtès
2016-05-11 21:55 ` Roel Janssen
2016-05-17 20:48 ` Ludovic Courtès
2016-05-17 21:31 ` Roel Janssen
2016-05-19 12:08 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h9e7nf2i.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=roel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.