···664664665665</section>
666666667667+<section xml:id="sec-weechat">
668668+<title>Weechat</title>
669669+<para>
670670+Weechat can currently be configured to include your choice of plugins.
671671+To make use of this functionality, install an expression that overrides its configuration such as
672672+<programlisting>weechat.override {configure = {availablePlugins, ...}: {
673673+ plugins = with availablePlugins; [ python perl ];
674674+ }
675675+}</programlisting>
676676+</para>
677677+<para>
678678+The plugins currently available are <literal>python</literal>,
679679+<literal>perl</literal>, <literal>ruby</literal>, <literal>guile</literal>,
680680+<literal>tcl</literal> and <literal>lua</literal>.
681681+</para>
682682+<para>
683683+The python plugin allows the addition of extra libraries. For instance,
684684+the <literal>inotify.py</literal> script in weechat-scripts requires
685685+D-Bus or libnotify, and the <literal>fish.py</literal> script requires
686686+pycrypto. To use these scripts, use the <literal>python</literal>
687687+plugin's <literal>withPackages</literal> attribute:
688688+<programlisting>weechat.override {configure = {availablePlugins, ...}: {
689689+ plugins = with availablePlugins; [
690690+ (python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
691691+ ];
692692+ }
693693+}
694694+</programlisting>
695695+</para>
696696+</section>
667697</chapter>