From f57fb2ee26bd3df7e094a9bfcce9c1103baee455 Mon Sep 17 00:00:00 2001 From: Léo Gaspard Date: Wed, 4 Apr 2018 14:33:50 +0200 Subject: weechat: add hint in documentation --- doc/package-notes.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/package-notes.xml b/doc/package-notes.xml index 2d6c87c3d07..1fccfd5d329 100644 --- a/doc/package-notes.xml +++ b/doc/package-notes.xml @@ -713,7 +713,7 @@ the inotify.py script in weechat-scripts requires D-Bus or libnotify, and the fish.py script requires pycrypto. To use these scripts, use the python plugin's withPackages attribute: -weechat.override {configure = {availablePlugins, ...}: { +weechat.override { configure = {availablePlugins, ...}: { plugins = with availablePlugins; [ (python.withPackages (ps: with ps; [ pycrypto python-dbus ])) ]; @@ -721,5 +721,15 @@ plugin's withPackages attribute: } + +In order to also keep all default plugins installed, it is possible to use +the following method: +weechat.override { configure = { availablePlugins, ... }: { + plugins = builtins.attrValues (availablePlugins // { + python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]); + }); +}; } + + -- cgit 1.4.1