diff options
Diffstat (limited to 'pkgs/applications/networking/instant-messengers')
3 files changed, 88 insertions, 1 deletions
diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix index c9b8a959bf9..586ce26e8c9 100644 --- a/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-latex/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation { meta = with stdenv.lib; { homepage = http://sourceforge.net/projects/pidgin-latex/; description = "LaTeX rendering plugin for Pidgin IM"; - licenses = licenses.gpl2; + license = licenses.gpl2; platforms = platforms.linux; maintainers = maintainers.abbradar; }; diff --git a/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-plugin-pack/default.nix b/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-plugin-pack/default.nix new file mode 100644 index 00000000000..149f62bb981 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-plugin-pack/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchurl, pidgin, intltool, python } : + +stdenv.mkDerivation rec { + name = "purple-plugin-pack-2.7.0"; + src = fetchurl { + url = "https://bitbucket.org/rekkanoryo/purple-plugin-pack/downloads/${name}.tar.bz2"; + sha256 = "0g5hmy7fwgjq59j52h9yps28jsjjrfkd4r18gyx6hfd3g3kzbg1b"; + }; + + buildInputs = [ pidgin intltool python ]; + + meta = with stdenv.lib; { + homepage = https://bitbucket.org/rekkanoryo/purple-plugin-pack; + description = "Plugin pack for Pidgin 2.x"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainters = with maintainers; [ bdimcheff ]; + }; +} diff --git a/pkgs/applications/networking/instant-messengers/viber/default.nix b/pkgs/applications/networking/instant-messengers/viber/default.nix new file mode 100644 index 00000000000..d268cbc55cf --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/viber/default.nix @@ -0,0 +1,68 @@ +{ fetchurl, stdenv, dpkg, makeWrapper, xlibs, qt5, gstreamer, zlib, sqlite, libxslt }: + +assert stdenv.system == "x86_64-linux"; + +# BUG: viber tries to access contacts list and that causes segfault +# FIX: you have to do `chmod 444 ~/.ViberPC/<your mobile phone number>/Avatars` +# BUG: viber tries to it's downloads and that causes segfault +# FIX: you have to do `chmod 444 ~/Documents/ViberDownloads` +# TODO: fix bugs + +stdenv.mkDerivation rec { + name = "viber-${version}"; + version = "4.2.2.6"; + + src = fetchurl { + url = "http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb"; + sha256 = "1fv269z9sni21lc1ka25jnxr9w8zfg1gfn2c7fnd8cdd5fm57d26"; + }; + + buildInputs = [ dpkg makeWrapper ]; + + unpackPhase = "true"; + + libPath = stdenv.lib.makeLibraryPath [ + qt5 + xlibs.libX11 + gstreamer + zlib + sqlite + xlibs.libXrender + libxslt + stdenv.cc.cc + xlibs.libXScrnSaver + xlibs.libXext + ]; + + installPhase = '' + dpkg-deb -x $src $out + mkdir -p $out/bin + mv $out/opt/viber/{Sound,icons,libqfacebook.so} $out + mv $out/opt/viber/Viber $out/viber + rm -rf $out/opt + ln -s $out/viber $out/bin/viber + mkdir -p usr/lib/mozilla/plugins + + patchelf \ + --set-rpath $libPath \ + $out/libqfacebook.so + patchelf \ + --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ + --set-rpath $libPath:$out \ + $out/viber + + wrapProgram $out/viber --prefix LD_LIBRARY_PATH : $libPath:$out + ''; + + dontStrip = true; + dontPatchELF = true; + + meta = { + homepage = http://www.viber.com; + description = "An instant messaging and Voice over IP (VoIP) app"; + license = stdenv.lib.licenses.unfree; + platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ jagajaga ]; + }; + +} |