weechat: add hint in documentation
This commit is contained in:
parent
ea145b68a0
commit
f57fb2ee26
@ -713,7 +713,7 @@ the <literal>inotify.py</literal> script in weechat-scripts requires
|
|||||||
D-Bus or libnotify, and the <literal>fish.py</literal> script requires
|
D-Bus or libnotify, and the <literal>fish.py</literal> script requires
|
||||||
pycrypto. To use these scripts, use the <literal>python</literal>
|
pycrypto. To use these scripts, use the <literal>python</literal>
|
||||||
plugin's <literal>withPackages</literal> attribute:
|
plugin's <literal>withPackages</literal> attribute:
|
||||||
<programlisting>weechat.override {configure = {availablePlugins, ...}: {
|
<programlisting>weechat.override { configure = {availablePlugins, ...}: {
|
||||||
plugins = with availablePlugins; [
|
plugins = with availablePlugins; [
|
||||||
(python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
|
(python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
|
||||||
];
|
];
|
||||||
@ -721,5 +721,15 @@ plugin's <literal>withPackages</literal> attribute:
|
|||||||
}
|
}
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
In order to also keep all default plugins installed, it is possible to use
|
||||||
|
the following method:
|
||||||
|
<programlisting>weechat.override { configure = { availablePlugins, ... }: {
|
||||||
|
plugins = builtins.attrValues (availablePlugins // {
|
||||||
|
python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]);
|
||||||
|
});
|
||||||
|
}; }
|
||||||
|
</programlisting>
|
||||||
|
</para>
|
||||||
</section>
|
</section>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
Loading…
Reference in New Issue
Block a user