[Nix-dev] [PATCH] Fix pidgin-sipe plugin to build with latest pidgin

David Brown nix at davidb.org
Thu Jun 3 15:47:50 CEST 2010


---
 .../pidgin-plugins/sipe/default.nix                |    2 +
 .../pidgin-plugins/sipe/fix-2.7.0.patch            |   27 ++++++++++++++++++++
 2 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/fix-2.7.0.patch

diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix
index b80f810..d842dc9 100644
--- a/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix
+++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix
@@ -10,6 +10,8 @@ stdenv.mkDerivation {
     sha256 = "11d85qxix1dmwvzs3lx0sycsx1d5sy67r9y78fs7z716py4mg9np";
   };
 
+  patches = [ ./fix-2.7.0.patch ];
+
   meta = {
     description = "SIPE plugin for Pidgin IM.";
     homepage = http://sipe.sourceforge.net/;
diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/fix-2.7.0.patch b/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/fix-2.7.0.patch
new file mode 100644
index 0000000..cecfa8a
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/fix-2.7.0.patch
@@ -0,0 +1,27 @@
+From 8ad28171ac5c3fbd1917a2f52e75423c4d357b24 Mon Sep 17 00:00:00 2001
+From: David Brown <nix at davidb.org>
+Date: Thu, 3 Jun 2010 06:40:04 -0700
+Subject: [PATCH] Fix initializer for 2.7.0 release
+
+The release of 2.7.0 of pidgin/purple gained two extra fields in a
+structure.
+---
+ src/core/sipe.c |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/src/core/sipe.c b/src/core/sipe.c
+index 45a9015..19f4237 100644
+--- a/src/core/sipe.c
++++ b/src/core/sipe.c
+@@ -10683,6 +10683,8 @@ PurplePluginProtocolInfo prpl_info =
+ 	NULL,					/* get_media_caps */
+ #if PURPLE_VERSION_CHECK(2,7,0)
+ 	NULL,					/* get_moods */
++	NULL,					/* set_public_alias */
++	NULL,					/* get_public_alias */
+ #endif
+ #endif
+ #endif
+-- 
+1.7.1
+
-- 
1.7.1




More information about the nix-dev mailing list