git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32174 from lheckemann/weechat-all-default

weechat: default to enabling all plugins

commit4657fc893a2e38f1c0477fa44b0ed0d12fc011e4 authorJörg Thalheim <Mic92@users.noreply.github.com> dateWed 29 Nov 2017, 23:02 (9 years ago) parentaee138b566a16b
2 files changed+9−7
doc/package-notes.xml+6−4 pkgs/applications/networking/irc/weechat/default.nix+3−3
doc/package-notes.xml+6−4
@@ -667,11 +667,13 @@ cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el
667667<section xml:id="sec-weechat">
668668<title>Weechat</title>
669669<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
670+Weechat can be configured to include your choice of plugins, reducing its
671+closure size from the default configuration which includes all available
672+plugins. To make use of this functionality, install an expression that
673+overrides its configuration such as
672674<programlisting>weechat.override {configure = {availablePlugins, ...}: {
673− plugins = with availablePlugins; [ python perl ];
674− }
675+ plugins = with availablePlugins; [ python perl ];
676+ }
675677}</programlisting>
676678</para>
677679<para>
pkgs/applications/networking/irc/weechat/default.nix+3−3
@@ -11,7 +11,7 @@
1111, rubySupport ? true, ruby
1212, tclSupport ? true, tcl
1313, extraBuildInputs ? []
14−, configure ? null
14+, configure ? { availablePlugins, ... }: { plugins = builtins.attrValues availablePlugins; }
1515, runCommand }:
1616
1717let
@@ -121,9 +121,9 @@ in if configure == null then weechat else
121121 ln -s $plugin $out/plugins
122122 done
123123 '';
124− in writeScriptBin "weechat" ''
124+ in (writeScriptBin "weechat" ''
125125 #!${stdenv.shell}
126126 export WEECHAT_EXTRA_LIBDIR=${pluginsDir}
127127 ${lib.concatMapStringsSep "\n" (p: lib.optionalString (p ? extraEnv) p.extraEnv) plugins}
128128 exec ${weechat}/bin/weechat "$@"
129− ''
129+ '') // { unwrapped = weechat; }