diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2013-04-16 14:42:54 +0200 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2013-04-16 14:53:59 +0200 |
commit | 9216b0598cbdda0feb6477efdaccf6fc472666be (patch) | |
tree | f19141312929b079baee60b17c9c4e2299eeabe1 /pkgs/applications/networking/instant-messengers/pidgin-plugins | |
parent | 1d255f9ab37c6542240fc1eb75e8b7c334d39321 (diff) |
Adding skype4pidgin. It crashes.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/pidgin-plugins')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/pidgin-plugins/skype4pidgin/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/skype4pidgin/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/skype4pidgin/default.nix new file mode 100644 index 0000000000000..ffa98e47520e1 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/skype4pidgin/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchsvn, pkgconfig, pidgin, libnotify, gdk_pixbuf, glib, dbus +, dbus_glib }: + +let + rev = 657; +in +stdenv.mkDerivation rec { + name = "skype4pidgin-svn-657"; + src = fetchsvn { + url = "http://skype4pidgin.googlecode.com/svn/trunk"; + inherit rev; + sha256 = "0sg91rqkg6mjdkwxjbs7bmh65sm5sj6fzygkfiz8av3zjzmj127b"; + }; + + NIX_CFLAGS_COMPILE = "-I${libnotify}/include/libnotify"; + + patchPhase = '' + sed -i -e 's/ [^ ]*-gcc/ gcc/' -e 's/-march[^ ]*//' \ + -e 's/glib-2.0/glib-2.0 gdk-pixbuf-2.0 libnotify purple dbus-glib-1/' Makefile + pkg-config --cflags glib-2.0 gdk-pixbuf-2.0 libnotify + ''; + + buildPhase = "make libskype.so libskype_dbus.so"; + + installPhase = '' + ensureDir $out/pixmaps/pidgin/protocols/{16,22,48} $out/bin $out/lib/pidgin + cp icons/16/skypeout.png $out/pixmaps/pidgin/protocols/16 + cp icons/22/skypeout.png $out/pixmaps/pidgin/protocols/22 + cp icons/48/skypeout.png $out/pixmaps/pidgin/protocols/48 + cp libskype.so libskype_dbus.so $out/lib/pidgin + ''; + + postInstall = "ln -s \$out/lib/pidgin \$out/share/pidgin-otr"; + + buildInputs = [ pidgin pkgconfig libnotify gdk_pixbuf glib dbus dbus_glib ]; +} |