weechat: default to enabling all plugins

Plain weechat is still accessible as `weechat.unwrapped`
or `weechat.override {configure = null;}`.

Also update documentation to reflect this change.
This commit is contained in:
Linus Heckemann
2017-11-29 15:30:56 +00:00
parent 2f1a818d00
commit 566a16b742
2 changed files with 9 additions and 7 deletions
@@ -11,7 +11,7 @@
, rubySupport ? true, ruby
, tclSupport ? true, tcl
, extraBuildInputs ? []
, configure ? null
, configure ? { availablePlugins, ... }: { plugins = builtins.attrValues availablePlugins; }
, runCommand }:
let
@@ -121,9 +121,9 @@ in if configure == null then weechat else
ln -s $plugin $out/plugins
done
'';
in writeScriptBin "weechat" ''
in (writeScriptBin "weechat" ''
#!${stdenv.shell}
export WEECHAT_EXTRA_LIBDIR=${pluginsDir}
${lib.concatMapStringsSep "\n" (p: lib.optionalString (p ? extraEnv) p.extraEnv) plugins}
exec ${weechat}/bin/weechat "$@"
''
'') // { unwrapped = weechat; }