summaryrefslogtreecommitdiff
path: root/overlays/pidgin.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/pidgin.nix')
-rw-r--r--overlays/pidgin.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/overlays/pidgin.nix b/overlays/pidgin.nix
index d346c7a1..3c9fb93c 100644
--- a/overlays/pidgin.nix
+++ b/overlays/pidgin.nix
@@ -4,8 +4,29 @@ let
4 url = "https://developer.pidgin.im/raw-attachment/ticket/16524/0001-only-request-unseed-chat-history-from-jabber-group-c.patch"; 4 url = "https://developer.pidgin.im/raw-attachment/ticket/16524/0001-only-request-unseed-chat-history-from-jabber-group-c.patch";
5 sha256 = "083wvmq7417xz55fxxhllqwql1hgjvin2sak08844121yw1jvc44"; 5 sha256 = "083wvmq7417xz55fxxhllqwql1hgjvin2sak08844121yw1jvc44";
6 }; 6 };
7
8 pidginWrapper = { symlinkJoin, pidgin, makeWrapper, plugins }:
9 let
10 extraArgs = map (x: x.wrapArgs or "") plugins;
11 majorVersion = prev.lib.versions.major pidgin.version;
12 in symlinkJoin {
13 name = "pidgin-with-plugins-${pidgin.version}";
14
15 paths = [ pidgin ] ++ plugins;
16
17 buildInputs = [ makeWrapper ];
18
19 postBuild = ''
20 wrapProgram $out/bin/pidgin \
21 --suffix-each PURPLE_PLUGIN_PATH ':' "$out/lib/purple-${majorVersion} $out/lib/pidgin" \
22 ${toString extraArgs}
23 wrapProgram $out/bin/finch \
24 --suffix-each PURPLE_PLUGIN_PATH ':' "$out/lib/purple-${majorVersion}" \
25 ${toString extraArgs}
26 '';
27 };
7in { 28in {
8 pidgin-with-plugins = import (/. + prev.path + "/pkgs/applications/networking/instant-messengers/pidgin/wrapper.nix") { 29 pidgin-with-plugins = pidginWrapper {
9 inherit (prev) makeWrapper symlinkJoin; 30 inherit (prev) makeWrapper symlinkJoin;
10 plugins = with final; [ purple-lurch pidgin-carbons pidgin-opensteamworks pidgin-xmpp-receipts ]; 31 plugins = with final; [ purple-lurch pidgin-carbons pidgin-opensteamworks pidgin-xmpp-receipts ];
11 pidgin = prev.pidgin.overrideAttrs (oldAttrs: { 32 pidgin = prev.pidgin.overrideAttrs (oldAttrs: {