Commit Graph

95 Commits

Author SHA1 Message Date
Luka Blaskovic
55ae5ff593 weechat-matrix-bridge: use luaffi from luaPackages 2019-08-24 10:05:00 +00:00
danbst
d80cd26ff9 Merge branch 'master' into flip-map-foreach 2019-08-18 18:00:25 +03:00
Benjamin Esham
aaf6f09717 weechat: prevent impure use of system Python (#64262) 2019-08-08 11:34:44 -04:00
danbst
0f8596ab3f mass replace "flip map -> forEach"
See `forEach`-introduction commit.
```
rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g'
```
2019-08-05 14:03:38 +03:00
danbst
91bb646e98 Revert "mass replace "flip map -> foreach""
This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
2019-08-05 14:01:45 +03:00
danbst
3b0534310c mass replace "flip map -> foreach"
See `foreach`-introduction commit.
```
rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g'
```
2019-07-14 13:46:10 +03:00
Rok Garbas
65781e204d
Remove me (garbas) as maintainer since I don't have much time to maintain anything 2019-07-03 11:27:39 +02:00
Benjamin Esham
01f10d0163 weechat-matrix-bridge: mark package as broken as Darwin
All of the dependencies of this package are now available on Darwin, but
the package itself still fails to build on that platform.
2019-07-01 13:15:49 -04:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Maximilian Bosch
23bd9e7e3e
Merge pull request #62738 from geistesk/wee-slack-2.3
weechatScripts.wee-slack: 2.2.0 -> 2.3.0
2019-06-07 18:39:01 +02:00
Andreas Rammhold
153bfb4b4e
weechat: 2.4 -> 2.5
Changelog [1]:

  New features
    - core: use getopt to parse command line arguments
    - core: add option weechat.look.prefix_same_nick_middle
    - core: add option weechat.look.buffer_time_same
    - core: use seconds by default in /repeat interval, allow unit for the interval
    - core: allow text in addition to a command in command /repeat
    - core: add option "addreplace" in command /filter
    - api: return allocated string in hook_info callback and function info_get
    - api: replace argument "keep_eol" by "flags" in function string_split
    - api: add function command_options
    - api: add function string_match_list
    - irc: add bar items "irc_nick", "irc_host" and "irc_nick_host"
    - irc: add variable "host" in server structure
    - relay: add support of UNIX socket
    - relay: add option relay.weechat.commands
    - script: use SHA-512 instead of MD5 for script checksum
    - spell: rename aspell plugin to spell
    - trigger: add hooks "info" and "info_hashtable"
    - xfer: rename option xfer.network.speed_limit to xfer.network.speed_limit_send, add option xfer.network.speed_limit_recv

  Bug fixes
    - core: don’t execute command scheduled by /repeat and /wait if the buffer does not exist any more
    - core: set max length to 4096 for /secure passphrase
    - core: refilter only affected buffers on filter change
    - fset: fix slow refresh of fset buffer during /reload
    - irc: fix parsing of MODE command when there are colons after the first mode argument
    - irc: fix memory leak in infos "irc_server_isupport" and "irc_server_isupport_value"
    - irc: fix length of string for SHA-512, SHA-256 and SHA-1 in help on ssl_fingerprint option
    - irc: display an error with /allchan -current or /allpv -current if the current buffer is not an irc buffer
    - irc: fix update of channels modes with arguments when joining a channel
    - irc: quote NICK command argument sent to the server
    - php: fix memory leak in functions string_eval_expression, string_eval_path_home, key_bind, hook_process_hashtable, hook_hsignal_send, info_get_hashtable, hdata_update
    - relay: fix crash when a weechat relay client reloads the relay plugin with /plugin reload relay
    - spell: fix detection of nick followed by the nick completer
    - trigger: fix split of hook arguments

  Tests
    - unit: add tests on function util_signal_search

  Build
    - core: fix value of libdir in file weechat.pc
    - core: fix generation of man page weechat-headless with autotools
    - core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options (CMake ≥ 3.0 is now required)
    - core: fix compilation on Mac OS
    - lua: add detection of Lua 5.3 with autotools
    - ruby: add detection of Ruby 2.6
    - tests: fix compilation of tests on FreeBSD

[1] https://weechat.org/files/changelog/ChangeLog-2.5.html#v2.5
2019-06-07 10:05:14 +02:00
geistesk
1420e7dea8 weechatScripts.wee-slack: 2.2.0 -> 2.3.0 2019-06-05 22:17:24 +02:00
Maximilian Bosch
822634681e
Merge pull request #59487 from Ma27/install-weechat-manpages
weechat: install all outputs into the final store path
2019-05-24 15:58:30 +02:00
Vladyslav M
6adda5c34c
weechatScripts.weechat-autosort: unstable-2018-01-11 -> 3.4 2019-04-22 11:06:02 +03:00
Maximilian Bosch
681b1d8061
weechat: install all outputs into the final store path
Resolves #59300

Until now only `$out/bin/weechat` and `$out/bin/weechat-headless` were installed
into the store path that will be used when running i.e. `nix-env -iA weechat`.

Further outputs like icons (`$out/share/icons`), man pages (`$man`) or the HTML
documentation (`$out/share/doc/weechat`) are omitted at the moment. As
this can be fairly confusing I figured that it's better to copy those
files into the environment as well.

As `buildEnv` doesn't appear to support output splitting (you can only
install additional outputs of `paths` using `extraOutputsToInstall`),
it's easier for now to always install the `man` output by
default.

Man page installation can be turned off like this now:

```
weechat.override { installManPages = false; }
```
2019-04-14 17:52:58 +02:00
Jörg Thalheim
dadc7eb329
treewide: use runtimeShell instead of stdenv.shell whenever possible
Whenever we create scripts that are installed to $out, we must use runtimeShell
in order to get the shell that can be executed on the machine we create the
package for. This is relevant for cross-compiling. The only use case for
stdenv.shell are scripts that are executed as part of the build system.
Usages in checkPhase are borderline however to decrease the likelyhood
of people copying the wrong examples, I decided to use runtimeShell as well.
2019-02-26 14:10:49 +00:00
Maximilian Bosch
bbf3381838
weechat: 2.3 -> 2.4
https://weechat.org/files/releasenotes/ReleaseNotes-devel.html#v2.4

Also applied a patch from the 2.5 branch in order to fix the darwin
build: https://github.com/weechat/weechat/issues/1308
2019-02-20 11:25:46 +01:00
Matthew Bauer
a2b606f8e7 weechat: remove outputsToInstall from meta 2019-01-31 14:36:16 -05:00
Frederik Rietdijk
e5381cdece Merge master into staging-next 2019-01-06 09:36:23 +01:00
Michael Raskin
3b152247ea weechatScripts.weechat-matrix-bridge: 2018-05-29 -> 2018-11-19 (HTTP/2 support fix) 2019-01-05 13:21:30 +01:00
volth
fed7914539
Merge branch 'staging' into make-perl-pathd 2018-12-18 17:13:27 +00:00
volth
bb9557eb7c lib.makePerlPath -> perlPackages.makePerlPath 2018-12-15 03:50:31 +00:00
Maximilian Bosch
05882c0a74 weechatScripts.weechat-autosort: init at unstable-2018-01-11 (#51729)
Helpful weechat script to automatically keep buffers sorted.

Can be activated like this:

``` nix
weechat.override {
  configure = { ... }: {
    scripts = [
      weechatScripts.weechat-autosort
    ];
  };
}
```
2018-12-08 16:45:18 +00:00
Alyssa Ross
6dc9347712
weechat: fix bad merge
Identified in 8887e1f697 (r239097413).

9504292b1e9948fb286b1b1cdbe83f66b367b64d accidentally reverted all the
changes that had been made to the weechat wrapper since
8887e1f697d9e13ad277ca7d7054bc42c2459548.

I removed the wrapper, then wrote it again, but this time taking the
code from the latest version of weechat before the bad merge.
2018-12-05 15:21:19 +00:00
Linus Heckemann
9504292b1e Merge remote-tracking branch 'origin/master' into weechat-unwrapped 2018-12-05 12:12:42 +01:00
Franz Pletz
31bd0df53d
weechatScripts.wee-slack: 2.1.1 => 2.2.0 2018-11-16 00:45:07 +01:00
Maximilian Bosch
5d9add49a2
weechat: remove obsolete aggregate-commands patch
This was the rebased version of a patch which landed in WeeChat 2.3
which is now used on nixpkgs master (see 2702772d2d10dc482cbe20d766d214bf89d1ed71).
2018-11-08 15:47:38 +01:00
Alyssa Ross
2702772d2d
weechat: 2.2 -> 2.3
Fixes https://github.com/NixOS/nixpkgs/issues/48798.
2018-10-25 11:44:22 +00:00
Alyssa Ross
e20e1e5c2c weechat: add perl.withPackages (#48815)
Allows for adding Perl libraries in the same way as for Python. Doesn't
really need to be a function, since there's only one perlPackages in
nixpkgs, but I went for consistency with the python plugin.
2018-10-23 12:23:47 +02:00
adisbladis
230fd49738
weechat: Add version and meta to buildEnv package
Currently the output from `nix search` and similar tools are lacking
important meta data
2018-09-22 19:46:21 +08:00
Maximilian Bosch
61a9463498 weechatScripts.weechat-matrix-bridge: don't export `olm.lua' as script (#46582)
Loading olm.lua as weechat script with `/script load olm.lua' causes
errors like this:

```
/nix/store/43jbh7yxh8j4gjfzbvpd9clncah5dip1-weechat-matrix-bridge-2018-05-29/lib/ffi.so: undefined symbol: lua_tointeger
```

As `olm.lua' is loaded by `matrix.lua' it doesn't need to be included
manually by the weechat configuration.
2018-09-12 23:56:03 +02:00
Maximilian Bosch
e2b4644f9c
weechat: fix quoting for ${} syntax
In my previous PR I missed that ${sec.foobar} (syntax to retrieve
secrets in a weechat runtime) breaks the shell evaluation.

Furthermore `;` shall be used rather than `\n` to concat scripts and the
init config.
2018-09-07 18:41:04 +02:00
Maximilian Bosch
f5becfb5b0
weechatScripts.wee-slack: init at 2.1.1 2018-09-07 13:45:13 +02:00
Maximilian Bosch
a8efe61412
weechat: 2.1 -> 2.2; improve package configuration
This aims to make the `weechat` package even more configurable. It
allows to specify scripts and commands using the `configure` function
inside a `weechat.override` expression.

The package can be configured like this:

```
with import <nixpkgs> { };
weechat.override {
  plugins = { availablePlugins, ... }: {
    plugins = builtins.attrValues availablePlugins;

    init = ''
      /set foo bar
      /server add freenode chat.freenode.org
    '';

    scripts = [ "/path/to/script.py" ];
  };
}
```

All commands are passed to `weechat --run-command "/set foo bar;/server ..."`.

The `plugins' attribute is not necessarily required anymore, if it's
sufficient to add `init' commands, the `plugins' will be
`builtins.attrValues availablePlugins' by default.

Additionally the result contains `weechat` and `weechat-headless`
(introduced in WeeChat 2.1) now.
2018-09-07 13:10:43 +02:00
Alyssa Ross
8887e1f697
weechat: seperate weechat-unwrapped from wrapper
If I have a patch I want to apply to weechat, I can't do that with
overrideAttrs like I can with almost every other package, because that
only applies to the wrapper derivation. For other wrapped packages, one
can usually call the wrapper with any version of the derivation, but the
weechat derivation didn't expose a wrapper creation function.

Taking inspiration from other packages, particularly Firefox, I
extracted the wrapper into its own function, made the default weechat
derivation use that, and added weechat-unwrapped.

Now I can add my custom patch like this:

    (wrapWeechat
      (weechat-unwrapped.overrideAttrs (oldAttrs: {
        patches = [
          (fetchpatch {
            url = "55767f5f11.patch?full_index=1";
            sha256 = "1pkcdsby57diqds1y5hhl0fr4i8j0zax32jb0gqd36siki3lza3d";
          })
        ];
      }))
      { configure =
        { availablePlugins, ... }:
        {
          plugins = with availablePlugins; [
            (python.withPackages (packages: with packages; [ potr websocket_client ]))
          ];
        };
      })

There is a small backward incompatibility here: previously, it was
possible to get an unwrapped weechat like this:

    weechat.override { configure = null; }

This didn't seem too important to keep around since it was also possible
to get an unwrapped weechat in a much more obvious way:

    weechat.unwrapped

I could probably make it so that the first way still worked, if that
behavior turns out to really have been important.
2018-07-25 17:49:00 +01:00
Jörg Thalheim
218298b30f
Merge branch 'master' into unused5 2018-07-21 15:41:22 +01:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
volth
6d2857a311 [bot] treewide: remove unused 'inherit' in let blocks 2018-07-20 19:38:19 +00:00
Pascal Wittmann
aa10b3127f
weechat: set name to include version
see issue #43717
2018-07-19 21:43:11 +02:00
obadz
71f1f9b8ff weechat: fix binary name
(was renamed to `weechat-2.1` in af9d10a as discussed in
7cd7e4ce26 (commitcomment-29325227))
2018-06-12 23:58:38 +01:00
Ryan Mulligan
af9d10a91b treewide: fix derivation names 2018-05-28 05:59:57 -07:00
Michael Raskin
7cd7e4ce26 weechat: 2.0 -> 2.1 2018-04-28 22:42:38 +02:00
Léo Gaspard
fe21790989 weechat: forward metadata to wrapper 2018-04-04 14:58:56 +02:00
Léo Gaspard
51d9192cdd weechat: point description to documentation 2018-04-04 14:58:54 +02:00
Fahad Sadah
e2eb563497 weechat: 1.9.1 -> 2.0 2017-12-18 01:33:36 +00:00
Linus Heckemann
566a16b742 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.
2017-11-29 15:30:56 +00:00
Linus Heckemann
05f96bf376 weechat: split plugins into separate outputs
Also add a wrapper generator that allows adding the plugins back
conveniently and corresponding documentation in the package notes
section of the nixpkgs manual.
2017-11-03 10:25:22 +00:00
Franz Pletz
15189140dd
weechat: 1.9 -> 1.9.1 for CVE-2017-14727
https://lists.nongnu.org/archive/html/weechat-security/2017-09/msg00000.html
2017-09-28 13:01:49 +02:00
Tuomas Tynkkynen
1ff422aa23 treewide: Add man & info outputs where necessary (instead of doc)
Because man & info pages won't be going to $doc after the next commit.
Scripted change for the files having one-package-per-file.
2017-08-11 21:32:54 +03:00
Aristid Breitkreuz
a2b2c1e4bd weechat: fix build (hack?) 2017-07-30 20:22:17 +02:00