From 7b76723a6c33b50fffa6972b384169f11da217bd Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 20 Jan 2022 22:53:40 +0100 Subject: gkleen@sif: ... --- overlays/pidgin.nix | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'overlays') diff --git a/overlays/pidgin.nix b/overlays/pidgin.nix index 3c9fb93c..4c315f55 100644 --- a/overlays/pidgin.nix +++ b/overlays/pidgin.nix @@ -26,9 +26,30 @@ let ''; }; in { + pidgin-rocketchat = let + rev = "5c08ad0eacd39914d27b692d7eb42a94a991fb4c"; + in prev.stdenv.mkDerivation { + pname = "pidgin-rocketchat"; + version = builtins.substring 0 8 rev; + + src = prev.fetchFromGitHub { + owner = "EionRobb"; + repo = "purple-rocketchat"; + inherit rev; + hash = "sha256-UBIp5tpj4Xfo+mPhY51+rzs+ojKr90zWK+XLiK7XvWM="; + }; + + nativeBuildInputs = with final; [ pidgin json-glib glib discount ]; + + installFlags = [ + "ROCKETCHAT_DEST=$(out)/lib/purple-2" + "ROCKETCHAT_ICONS_DEST=$(out)/share/pixmaps/pidgin/protocols" + ]; + }; + pidgin-with-plugins = pidginWrapper { inherit (prev) makeWrapper symlinkJoin; - plugins = with final; [ purple-lurch pidgin-carbons pidgin-opensteamworks pidgin-xmpp-receipts ]; + plugins = with final; [ purple-lurch pidgin-carbons pidgin-opensteamworks pidgin-xmpp-receipts pidgin-rocketchat ]; pidgin = prev.pidgin.overrideAttrs (oldAttrs: { patches = (oldAttrs.patches or []) ++ [mucHistory]; }); -- cgit v1.2.3