Commit graph

300 commits

Author SHA1 Message Date
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
Michael Raskin
8384cfe455
Merge pull request #55129 from oxij/tree/move-defaults-to-package-files
all-packages.nix: move defaults to package files
2019-02-13 20:04:08 +00:00
Pierre Bourdon
25c2d1cd3e
glowing-bear: init at 0.7.1 2019-02-03 19:39:59 +01:00
Jan Malakhovski
4f066da1de quassel: move defaults to package file 2019-02-03 15:30:44 +00:00
Matthew Bauer
a2b606f8e7 weechat: remove outputsToInstall from meta 2019-01-31 14:36:16 -05:00
Andreas Rammhold
41ee7073df
irssi: 1.1.1 -> 1.1.2
Fixes CVE-2019-5882 [1] and a few minor changes [2].

[1] https://irssi.org/security/html/irssi_sa_2019_01/
[2] https://irssi.org/2019/01/09/irssi-1.1.2-released/
2019-01-12 12:52:16 +01: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
Frederik Rietdijk
070290bda7 Merge master into staging-next 2018-12-31 12:00:36 +01:00
Lars Jellema
38f828eb9c quassel: 0.12.5 -> 0.13.0, cleanup
In particular we move the src into the actual quassel derivation
instead of using a `source.nix`.

Also use `fetchFromGitHub` since using `fetchurl` for github archives
is problematic.
2018-12-30 15:46:15 -05: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).

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

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 2702772d2d).
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
Frederik Rietdijk
a04cf8fdb7 konversation: 1.7.4 -> 1.7.5 2018-08-26 12:18:28 +02:00
Pascal Wittmann
ff161dcd69
irssi: add license
see issue #43716
2018-08-06 13:06:06 +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
Silvan Mosberger
57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00
Evgeny Egorochkin
05fd6a0c87 quassel: fix building against Qt-5.11 2018-06-24 20:23:21 +03:00
Yegor Timoshenko
bae863ebae
Merge pull request #41095 from bkchr/qt_5_11
qt5: 5.10 -> 5.11
2018-06-15 12:25:32 +00: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
Bastian Köcher
a95a38ff3b konversation: Fixes build with Qt 5.11 2018-06-12 14:27:11 +02:00
Ryan Mulligan
af9d10a91b treewide: fix derivation names 2018-05-28 05:59:57 -07:00
Jörg Thalheim
7796075209
Merge pull request #37253 from LnL7/darwin-communi
communi: fix darwin build
2018-05-21 14:22:11 +01:00
Matthew Bauer
143978a477 treewide: remove platform assertions
linux: readd assertion
2018-05-03 13:09:20 -05:00
Ryan Mulligan
038a0c9a60 treewide: http to https 2018-04-30 21:39:20 -07:00
Michael Raskin
7cd7e4ce26 weechat: 2.0 -> 2.1 2018-04-28 22:42:38 +02:00
Andreas Rammhold
bf325f1bd7
quassel: 0.12.4 -> 0.12.5 (fixes RCE & remote crash)
It was found that Quassel could be remotely crashed and had an
unauthenticated RCE vulnerability. The public annoucement can be found
on the oss-sec archive [1]. The bump to 0.12.5 is supposed fixe both issues.

[1] http://seclists.org/oss-sec/2018/q2/77
2018-04-28 11:08:42 +02:00
Pascal Wittmann
7427b58266 Switch suckless.org URLs to https
(cherry picked from commit 22f212537f475565f67a07b869f9cceea2022191)
2018-04-11 15:11:55 +02:00
Frederik Rietdijk
23741692fa Merge master into staging 2018-04-04 19:36:39 +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
Matthew Bauer
ed2a9cf65f treewide: remove libintl hacks 2018-03-22 16:50:11 -05:00
Daiderd Jordan
d7856d3c2a
ii: fix darwin build
/cc ZHF #36454
2018-03-19 23:41:49 +01:00
Daiderd Jordan
99d56c542e
communi: fix darwin build
/cc ZHF #36454
2018-03-17 16:37:56 +01:00