[Nix-dev] Pidgin plugins.
David Brown
nix at davidb.org
Tue May 11 08:13:16 CEST 2010
I'm trying to figure out how pidgin is supposed to find it's plugins.
I've added an expression for the pidgin-sipe plugin, but pidgin
doesn't find it. I tried pidgin-sipe, and it didn't find that one
either. As a workaround, I was able to do:
$ mkdir -p .pidgin/plugins
$ cd .pidgin/plugins
$ ln -s ../../.nix-profile/lib/purple-2/libsipe.so
and be able to use the plugin. Does pidgin need to be modified to be
able to find it's plugins using the user's current profile?
Thanks,
David
From ca4bc8f15225f53fb1fc479dfd72a700313f010b Mon Sep 17 00:00:00 2001
From: David Brown <nix at davidb.org>
Date: Mon, 10 May 2010 23:06:26 -0700
Subject: [PATCH] Add pidgin-sipe plugin.
---
.../pidgin-plugins/sipe/default.nix | 21 ++++++++++++++++++++
pkgs/top-level/all-packages.nix | 4 +++
2 files changed, 25 insertions(+), 0 deletions(-)
create mode 100644 pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix
diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix
new file mode 100644
index 0000000..a694776
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix
@@ -0,0 +1,21 @@
+args: with args;
+
+let
+ version = "1.10.0";
+in
+stdenv.mkDerivation {
+ name = "pidgin-sipe-${version}";
+ src = fetchurl {
+ url = "mirror://sourceforge/sipe/sipe/pidgin-sipe-${version}/pidgin-sipe-${version}.tar.gz";
+ sha256 = "11d85qxix1dmwvzs3lx0sycsx1d5sy67r9y78fs7z716py4mg9np";
+ };
+
+ meta = {
+ description = "SIPE plugin for Pidgin IM.";
+ homepage = http://sipe.sourceforge.net/;
+ };
+
+ postInstall = "find $out -ls; ln -s \$out/lib/purple-2 \$out/share/pidgin-sipe";
+
+ buildInputs = [pidgin intltool libxml2];
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index e3c6055..42239ff 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8189,6 +8189,10 @@ let
inherit fetchurl stdenv libotr pidgin;
};
+ pidginsipe = import ../applications/networking/instant-messengers/pidgin-plugins/sipe {
+ inherit fetchurl stdenv pidgin intltool libxml2;
+ };
+
pinfo = import ../applications/misc/pinfo {
inherit fetchurl stdenv ncurses readline;
};
--
1.7.1
More information about the nix-dev
mailing list