summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/instant-messengers/gajim
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2022-01-05 00:48:51 +0300
committerNikolay Amiantov <ab@fmap.me>2022-01-05 00:50:47 +0300
commit7e041d344690f638da46a6dfc7edf780ae222af7 (patch)
treeb4db6c797e06959cd028a5ee02529b65d5a20a2f /pkgs/applications/networking/instant-messengers/gajim
parentc138c66dcbd6cc986c44e3be0a1c8e47d0fe5573 (diff)
gajim: add plugin installer
Workaround upstream issue https://dev.gajim.org/gajim/gajim/-/issues/10719.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/gajim')
-rw-r--r--pkgs/applications/networking/instant-messengers/gajim/default.nix17
1 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/gajim/default.nix b/pkgs/applications/networking/instant-messengers/gajim/default.nix
index 8b5156708af9..05a8b9969575 100644
--- a/pkgs/applications/networking/instant-messengers/gajim/default.nix
+++ b/pkgs/applications/networking/instant-messengers/gajim/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchurl, gettext, wrapGAppsHook
+{ lib, fetchurl, fetchFromGitLab, gettext, wrapGAppsHook
# Native dependencies
, python3, gtk3, gobject-introspection, gnome
@@ -41,6 +41,21 @@ python3.pkgs.buildPythonApplication rec {
gettext wrapGAppsHook
];
+ # Workaround for https://dev.gajim.org/gajim/gajim/-/issues/10719.
+ # We don't use plugin release URL because it's updated in place.
+ plugins = fetchFromGitLab {
+ domain = "dev.gajim.org";
+ owner = "gajim";
+ repo = "gajim-plugins";
+ rev = "fea522e4360cec6ceacbf1df92644ab3343d4b99";
+ sha256 = "sha256-CmwEiLsdldoOfgHfWL/5hf/dp0HEDNAIlc5N0Np20KE=";
+ };
+
+ postPatch = ''
+ mkdir -p gajim/data/plugins
+ cp -r $plugins/plugin_installer gajim/data/plugins
+ '';
+
dontWrapGApps = true;
preFixup = ''