···664665</section>
666667+<section xml:id="sec-weechat">
668+<title>Weechat</title>
669+<para>
670+Weechat can currently be configured to include your choice of plugins.
671+To make use of this functionality, install an expression that overrides its configuration such as
672+<programlisting>weechat.override {configure = {availablePlugins, ...}: {
673+ plugins = with availablePlugins; [ python perl ];
674+ }
675+}</programlisting>
676+</para>
677+<para>
678+The plugins currently available are <literal>python</literal>,
679+<literal>perl</literal>, <literal>ruby</literal>, <literal>guile</literal>,
680+<literal>tcl</literal> and <literal>lua</literal>.
681+</para>
682+<para>
683+The python plugin allows the addition of extra libraries. For instance,
684+the <literal>inotify.py</literal> script in weechat-scripts requires
685+D-Bus or libnotify, and the <literal>fish.py</literal> script requires
686+pycrypto. To use these scripts, use the <literal>python</literal>
687+plugin's <literal>withPackages</literal> attribute:
688+<programlisting>weechat.override {configure = {availablePlugins, ...}: {
689+ plugins = with availablePlugins; [
690+ (python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
691+ ];
692+ }
693+}
694+</programlisting>
695+</para>
696+</section>
697</chapter>