summaryrefslogtreecommitdiff
path: root/overlays/pidgin.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-03-13 18:35:03 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-03-13 18:35:03 +0100
commit1e7de7c2823a9beea7103249b732f14b1b1e8f78 (patch)
treeec073e219d67c52a163ae7ce2ca00737c21d2a31 /overlays/pidgin.nix
parent49375b980197db7b4e0d17327b52d37d6ce33f35 (diff)
downloadnixos-1e7de7c2823a9beea7103249b732f14b1b1e8f78.tar
nixos-1e7de7c2823a9beea7103249b732f14b1b1e8f78.tar.gz
nixos-1e7de7c2823a9beea7103249b732f14b1b1e8f78.tar.bz2
nixos-1e7de7c2823a9beea7103249b732f14b1b1e8f78.tar.xz
nixos-1e7de7c2823a9beea7103249b732f14b1b1e8f78.zip
nvfetcher
Diffstat (limited to 'overlays/pidgin.nix')
-rw-r--r--overlays/pidgin.nix57
1 files changed, 0 insertions, 57 deletions
diff --git a/overlays/pidgin.nix b/overlays/pidgin.nix
deleted file mode 100644
index 4c315f55..00000000
--- a/overlays/pidgin.nix
+++ /dev/null
@@ -1,57 +0,0 @@
1final: prev:
2let
3 mucHistory = prev.fetchpatch {
4 url = "https://developer.pidgin.im/raw-attachment/ticket/16524/0001-only-request-unseed-chat-history-from-jabber-group-c.patch";
5 sha256 = "083wvmq7417xz55fxxhllqwql1hgjvin2sak08844121yw1jvc44";
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 };
28in {
29 pidgin-rocketchat = let
30 rev = "5c08ad0eacd39914d27b692d7eb42a94a991fb4c";
31 in prev.stdenv.mkDerivation {
32 pname = "pidgin-rocketchat";
33 version = builtins.substring 0 8 rev;
34
35 src = prev.fetchFromGitHub {
36 owner = "EionRobb";
37 repo = "purple-rocketchat";
38 inherit rev;
39 hash = "sha256-UBIp5tpj4Xfo+mPhY51+rzs+ojKr90zWK+XLiK7XvWM=";
40 };
41
42 nativeBuildInputs = with final; [ pidgin json-glib glib discount ];
43
44 installFlags = [
45 "ROCKETCHAT_DEST=$(out)/lib/purple-2"
46 "ROCKETCHAT_ICONS_DEST=$(out)/share/pixmaps/pidgin/protocols"
47 ];
48 };
49
50 pidgin-with-plugins = pidginWrapper {
51 inherit (prev) makeWrapper symlinkJoin;
52 plugins = with final; [ purple-lurch pidgin-carbons pidgin-opensteamworks pidgin-xmpp-receipts pidgin-rocketchat ];
53 pidgin = prev.pidgin.overrideAttrs (oldAttrs: {
54 patches = (oldAttrs.patches or []) ++ [mucHistory];
55 });
56 };
57}