diff options
author | Mark H Weaver <mhw@netris.org> | 2015-08-04 00:12:16 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2015-08-04 16:21:17 -0400 |
commit | b1a2bc895a3c12a4a668a04aec3e0e32c5ec0857 (patch) | |
tree | ed741541c3f2c7722d901d7047294ad17f25b31c /gnu/packages/patches | |
parent | 008b525734d42276b796c8fcde2d9161b268c6c8 (diff) | |
download | guix-b1a2bc895a3c12a4a668a04aec3e0e32c5ec0857.tar.gz |
gnu: Add pidgin.
* gnu/packages/patches/pidgin-add-search-path.patch: New file. * gnu-system.am (dist_patch_DATA): Add it. * gnu/packages/messaging.scm (pidgin): New variable.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/pidgin-add-search-path.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/patches/pidgin-add-search-path.patch b/gnu/packages/patches/pidgin-add-search-path.patch new file mode 100644 index 0000000000..00eb9e4ca6 --- /dev/null +++ b/gnu/packages/patches/pidgin-add-search-path.patch @@ -0,0 +1,25 @@ +Support the PURPLE_PLUGIN_PATH environment variable. This patch is based on +one from Nixpkgs, but properly handles the case where that variable is unset. + +--- pidgin-2.10.11/libpurple/plugin.c.orig 2014-11-23 11:41:25.000000000 -0500 ++++ pidgin-2.10.11/libpurple/plugin.c 2015-08-04 14:31:02.257366144 -0400 +@@ -1178,8 +1178,19 @@ + void + purple_plugins_init(void) { + void *handle = purple_plugins_get_handle(); ++ const gchar *purple_plugin_path; + + purple_plugins_add_search_path(LIBDIR); ++ purple_plugin_path = g_getenv("PURPLE_PLUGIN_PATH"); ++ if (purple_plugin_path && *purple_plugin_path) { ++ gchar **paths = g_strsplit(purple_plugin_path, ":", -1); ++ if (paths) { ++ gchar **p; ++ for (p = paths; *p; ++p) ++ if (**p) purple_plugins_add_search_path(*p); ++ } ++ g_strfreev(paths); ++ } + + purple_signal_register(handle, "plugin-load", + purple_marshal_VOID__POINTER, |