2013-04-16 13:53:01 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, pidgin, libnotify, gdk_pixbuf, glib, dbus
|
2013-04-16 13:42:54 +01:00
|
|
|
, dbus_glib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-04-16 13:53:01 +01:00
|
|
|
name = "skype4pidgin-novas0x2a-20120411-6c53f7c48f";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/novas0x2a/skype4pidgin/tarball/6c53f7c48f";
|
|
|
|
name = "${name}.tar.gz";
|
|
|
|
sha256 = "116jfh5ravaixivqx4a4bz0lbb9c49d5r83nwmripja56zdbpgr0";
|
2013-04-16 13:42:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${libnotify}/include/libnotify";
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's/ [^ ]*-gcc/ gcc/' -e 's/-march[^ ]*//' \
|
2013-04-16 13:53:01 +01:00
|
|
|
-e 's/GLIB_CFLAGS =.*/GLIB_CFLAGS=`pkg-config --cflags glib-2.0 gdk-pixbuf-2.0 libnotify purple dbus-glib-1`/' Makefile
|
2013-04-16 13:42:54 +01:00
|
|
|
pkg-config --cflags glib-2.0 gdk-pixbuf-2.0 libnotify
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "make libskype.so libskype_dbus.so";
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 13:56:10 +01:00
|
|
|
mkdir -p $out/pixmaps/pidgin/protocols/{16,22,48} $out/bin $out/lib/pidgin
|
2013-04-16 13:42:54 +01:00
|
|
|
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 ];
|
2013-04-16 13:53:01 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/novas0x2a/skype4pidgin;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2013-04-16 13:53:01 +01:00
|
|
|
description = "Plugin to use a running skype account through pidgin";
|
|
|
|
};
|
2013-04-16 13:42:54 +01:00
|
|
|
}
|