diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-03 16:36:00 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-01-03 16:36:00 +0100 |
commit | 57431febd78d65b357cf5b11b91b9e6bc1866b50 (patch) | |
tree | 2baf58a1819b42463ad6ada0f40ff91545c560b0 /overlays/pidgin.nix | |
parent | ae118521009cb22549dd5001a384af0c8020516d (diff) | |
download | nixos-57431febd78d65b357cf5b11b91b9e6bc1866b50.tar nixos-57431febd78d65b357cf5b11b91b9e6bc1866b50.tar.gz nixos-57431febd78d65b357cf5b11b91b9e6bc1866b50.tar.bz2 nixos-57431febd78d65b357cf5b11b91b9e6bc1866b50.tar.xz nixos-57431febd78d65b357cf5b11b91b9e6bc1866b50.zip |
simplify pidgin-with-plugins
Diffstat (limited to 'overlays/pidgin.nix')
-rw-r--r-- | overlays/pidgin.nix | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/overlays/pidgin.nix b/overlays/pidgin.nix index 09103ade..d346c7a1 100644 --- a/overlays/pidgin.nix +++ b/overlays/pidgin.nix | |||
@@ -1,20 +1,15 @@ | |||
1 | final: prev: | 1 | final: prev: |
2 | prev.lib.composeManyExtensions [ | 2 | let |
3 | (final: prev: | 3 | mucHistory = prev.fetchpatch { |
4 | let | 4 | url = "https://developer.pidgin.im/raw-attachment/ticket/16524/0001-only-request-unseed-chat-history-from-jabber-group-c.patch"; |
5 | mucHistory = prev.fetchpatch { | 5 | sha256 = "083wvmq7417xz55fxxhllqwql1hgjvin2sak08844121yw1jvc44"; |
6 | url = "https://developer.pidgin.im/raw-attachment/ticket/16524/0001-only-request-unseed-chat-history-from-jabber-group-c.patch"; | 6 | }; |
7 | sha256 = "083wvmq7417xz55fxxhllqwql1hgjvin2sak08844121yw1jvc44"; | 7 | in { |
8 | }; | 8 | pidgin-with-plugins = import (/. + prev.path + "/pkgs/applications/networking/instant-messengers/pidgin/wrapper.nix") { |
9 | in { | 9 | inherit (prev) makeWrapper symlinkJoin; |
10 | pidgin = prev.pidgin.overrideAttrs (oldAttrs: { | 10 | plugins = with final; [ purple-lurch pidgin-carbons pidgin-opensteamworks pidgin-xmpp-receipts ]; |
11 | patches = (oldAttrs.patches or []) ++ [mucHistory]; | 11 | pidgin = prev.pidgin.overrideAttrs (oldAttrs: { |
12 | }); | 12 | patches = (oldAttrs.patches or []) ++ [mucHistory]; |
13 | }) | 13 | }); |
14 | (final: prev: { | 14 | }; |
15 | pidgin-with-plugins = import (/. + prev.path + "/pkgs/applications/networking/instant-messengers/pidgin/wrapper.nix") { | 15 | } |
16 | inherit (prev) makeWrapper symlinkJoin pidgin; | ||
17 | plugins = with final; [ purple-lurch pidgin-carbons pidgin-opensteamworks pidgin-xmpp-receipts ]; | ||
18 | }; | ||
19 | }) | ||
20 | ] final prev | ||