nixpkgs/pkgs/applications/networking/irc
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
..
bip bip: Fix build 2018-03-10 18:06:35 +01:00
chatzilla treewide: http -> https sources (#42676) 2018-06-28 20:43:35 +02:00
communi communi: fix darwin build 2018-03-17 16:37:56 +01:00
epic5 epic5: add patch for openssl 1.1 2017-08-04 02:35:37 +02:00
hexchat tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
ii Switch suckless.org URLs to https 2018-04-11 15:11:55 +02:00
irssi pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
konversation konversation: Fixes build with Qt 5.11 2018-06-12 14:27:11 +02:00
quassel quassel: fix building against Qt-5.11 2018-06-24 20:23:21 +03:00
qweechat treewide: meta.platform -> meta.platforms 2017-05-02 19:32:02 -04:00
sic Switch suckless.org URLs to https 2018-04-11 15:11:55 +02:00
weechat weechat: seperate weechat-unwrapped from wrapper 2018-07-25 17:49:00 +01:00
wraith wraith: disable format hardening 2016-08-25 03:55:19 +02:00