summary refs log tree commit diff
path: root/doc/package-notes.xml
diff options
context:
space:
mode:
authorLéo Gaspard <leo@gaspard.io>2018-04-04 14:33:50 +0200
committerLéo Gaspard <leo@gaspard.io>2018-04-04 14:58:53 +0200
commitf57fb2ee26bd3df7e094a9bfcce9c1103baee455 (patch)
tree829fafc968610892f635b26c6694010632a84945 /doc/package-notes.xml
parentea145b68a019f6fff89e772e9a6c5f0584acc02c (diff)
downloadnixlib-f57fb2ee26bd3df7e094a9bfcce9c1103baee455.tar
nixlib-f57fb2ee26bd3df7e094a9bfcce9c1103baee455.tar.gz
nixlib-f57fb2ee26bd3df7e094a9bfcce9c1103baee455.tar.bz2
nixlib-f57fb2ee26bd3df7e094a9bfcce9c1103baee455.tar.lz
nixlib-f57fb2ee26bd3df7e094a9bfcce9c1103baee455.tar.xz
nixlib-f57fb2ee26bd3df7e094a9bfcce9c1103baee455.tar.zst
nixlib-f57fb2ee26bd3df7e094a9bfcce9c1103baee455.zip
weechat: add hint in documentation
Diffstat (limited to 'doc/package-notes.xml')
-rw-r--r--doc/package-notes.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/package-notes.xml b/doc/package-notes.xml
index 2d6c87c3d07a..1fccfd5d329d 100644
--- a/doc/package-notes.xml
+++ b/doc/package-notes.xml
@@ -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
 pycrypto. To use these scripts, use the <literal>python</literal>
 plugin's <literal>withPackages</literal> attribute:
-<programlisting>weechat.override {configure = {availablePlugins, ...}: {
+<programlisting>weechat.override { configure = {availablePlugins, ...}: {
     plugins = with availablePlugins; [
             (python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
         ];
@@ -721,5 +721,15 @@ plugin's <literal>withPackages</literal> attribute:
 }
 </programlisting>
 </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>
 </chapter>