<commit_before>{ 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 ];
}<commit_msg>Changing the source of skype4pidgin<commit_after>{ stdenv, fetchurl, pkgconfig, pidgin, libnotify, gdk_pixbuf, glib, dbus
, dbus_glib }:

stdenv.mkDerivation rec {
  name = "skype4pidgin-novas0x2a-20120411-6c53f7c48f";
  src = fetchurl {
    url = "https://github.com/novas0x2a/skype4pidgin/tarball/6c53f7c48f";
    name = "${name}.tar.gz";
    sha256 = "116jfh5ravaixivqx4a4bz0lbb9c49d5r83nwmripja56zdbpgr0";
  };

  NIX_CFLAGS_COMPILE = "-I${libnotify}/include/libnotify";

  patchPhase = ''
    sed -i -e 's/ [^ ]*-gcc/ gcc/' -e 's/-march[^ ]*//' \
        -e 's/GLIB_CFLAGS =.*/GLIB_CFLAGS=`pkg-config --cflags 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 ];

  meta = {
    homepage = https://github.com/novas0x2a/skype4pidgin;
    license = "GPLv3+";
    description = "Plugin to use a running skype account through pidgin";
  };
}
{'fraction_non_alphanumeric': 0.14962406015037594, 'fraction_numerical': 0.04924812030075188, 'mean_word_length': 3.4129353233830844, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4158350', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1130, 'n_words': 186}