about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2012-03-14 15:41:44 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2012-03-14 15:41:44 +0000
commit4874ff11441a76378572e9dcfd19c6ba86c8879c (patch)
tree14b36d719b4068d9ea90f351429c460ce89a242e /pkgs/applications/networking/instant-messengers
parentdc2d99ec96cb81763a5752a31d2718f7cff736ca (diff)
Move some IM clients to instant-messengers/
svn path=/nixpkgs/trunk/; revision=33065
Diffstat (limited to 'pkgs/applications/networking/instant-messengers')
-rw-r--r--pkgs/applications/networking/instant-messengers/ekiga/default.nix71
-rw-r--r--pkgs/applications/networking/instant-messengers/kphone/default.nix27
-rw-r--r--pkgs/applications/networking/instant-messengers/linphone/default.nix24
-rw-r--r--pkgs/applications/networking/instant-messengers/skype/default.nix73
-rw-r--r--pkgs/applications/networking/instant-messengers/telepathy/gabble/default.nix (renamed from pkgs/applications/networking/instant-messengers/telepathy/telepathy-gabble/default.nix)0
-rw-r--r--pkgs/applications/networking/instant-messengers/twinkle/default.nix29
6 files changed, 224 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/ekiga/default.nix b/pkgs/applications/networking/instant-messengers/ekiga/default.nix
new file mode 100644
index 0000000000000..276df1ae7a158
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/ekiga/default.nix
@@ -0,0 +1,71 @@
+x@{builderDefsPackage
+  , cyrus_sasl, gettext, openldap, ptlib, opal, GConf, libXv, rarian, intltool
+  , perl, perlXMLParser, evolution_data_server, gnome_doc_utils, avahi
+  , libsigcxx, gtk, dbus_glib, libnotify, libXext, xextproto, automake
+  , autoconf, pkgconfig, libxml2, videoproto, unixODBC, db4, nspr, nss, zlib
+  , libXrandr, randrproto, which, libxslt, libtasn1, gmp, nettle
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    baseName="ekiga";
+    baseVersion="3.2";
+    patchlevel="7";
+    version="${baseVersion}.${patchlevel}";
+    name="${baseName}-${version}";
+    url="mirror://gnome/sources/${baseName}/${baseVersion}/${name}.tar.bz2";
+    hash="13zxwfqhp7pisadx0hq50qwnj6d8r4dldvbs1ngydbwfnq4i6npj";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["setVars" "doConfigure" "doMakeInstall"];
+  configureFlags = [
+    "--with-ldap-dir=${openldap}"
+    "--with-libsasl2-dir=${cyrus_sasl}"
+  ];
+
+  setVars = a.noDepEntry (''
+    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${opal}/include/opal"
+    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$(echo ${evolution_data_server}/include/evolution-*)"
+    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2"
+    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${GConf}/include/gconf/2"
+
+    export NIX_LDFLAGS="$NIX_LDFLAGS -lopal"
+    for i in ${evolution_data_server}/lib/lib*.so; do
+      file="$(basename "$i" .so)"
+      bn="''${file#lib}"
+      export NIX_LDFLAGS="$NIX_LDFLAGS -l$bn"
+    done
+  '');
+
+  meta = {
+    description = "Ekiga SIP client";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "mirror://gnome/sources/ekiga";
+    };
+  };
+}) x
+
diff --git a/pkgs/applications/networking/instant-messengers/kphone/default.nix b/pkgs/applications/networking/instant-messengers/kphone/default.nix
new file mode 100644
index 0000000000000..dceb24a48b894
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/kphone/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, autoconf, automake, libtool, qt3, pkgconfig
+, openssl, libpng, alsaLib, libX11, libXext, libXt, libICE
+, libSM }:
+
+stdenv.mkDerivation {
+  name = "kphone-1.2";
+
+  src = fetchurl {
+    url = mirror://sourceforge/kphone/kphoneSI_1.2.tar.gz;
+    sha256 = "1q309n2gsdsa8d7ff2zwnyc69ngpnnj143dys90dnlmzr9ckhhg3";
+  };
+
+  buildInputs =
+    [ autoconf automake libtool qt3 pkgconfig openssl libpng alsaLib
+      libX11 libXext libXt libICE libSM
+    ];
+    
+  preConfigure = "autoconf";
+
+  meta = {
+    description = "KPhone is a SIP UA for Linux";
+    homepage = http://sourceforge.net/projects/kphone/;
+    license = "GPL";
+    maintainers = [ stdenv.lib.maintainers.marcweber ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}
diff --git a/pkgs/applications/networking/instant-messengers/linphone/default.nix b/pkgs/applications/networking/instant-messengers/linphone/default.nix
new file mode 100644
index 0000000000000..04e119afdb142
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/linphone/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl, intltool, pkgconfig, gtk, libglade, libosip, libexosip
+, speex, readline, mediastreamer }:
+        
+stdenv.mkDerivation rec {
+  name = "linphone-3.5.0";
+
+  src = fetchurl {
+    url = "mirror://savannah/linphone/3.5.x/sources/${name}.tar.gz";
+    sha256 = "1jrgsyx2mn6y50hjfx79fzqhp42r78cjr63w3bfjdl258zy2f6ix";
+  };
+
+  buildInputs = [ gtk libglade libosip libexosip readline mediastreamer speex ];
+
+  buildNativeInputs = [ intltool pkgconfig ];
+
+  configureFlags = "--enable-external-ortp --enable-external-mediastreamer";
+
+  meta = {
+    homepage = http://www.linphone.org/;
+    description = "Open Source video SIP softphone";
+    license = "GPLv2+";
+    platforms = stdenv.lib.platforms.gnu;
+  };
+}
diff --git a/pkgs/applications/networking/instant-messengers/skype/default.nix b/pkgs/applications/networking/instant-messengers/skype/default.nix
new file mode 100644
index 0000000000000..f94d7e125f65a
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/skype/default.nix
@@ -0,0 +1,73 @@
+{ stdenv, fetchurl, alsaLib, libXv, libXi, libXrender, libXrandr, zlib, glib
+, libXext, libX11, libXScrnSaver, libSM, qt4, libICE, freetype, fontconfig
+, pulseaudio, usePulseAudio, lib }:
+
+assert stdenv.system == "i686-linux";
+
+stdenv.mkDerivation rec {
+  name = "skype-2.2.0.35";
+
+  src = fetchurl {
+    url = "http://download.skype.com/linux/${name}.tar.bz2";
+    sha256 = "157ba3ci12bq0nv2m8wlsab45ib5sccqagyna8nixnhqw9q72sxm";
+  };
+
+  buildInputs = 
+    lib.optional usePulseAudio pulseaudio ++ [
+    alsaLib
+    stdenv.glibc 
+    stdenv.gcc.gcc
+    libXv
+    libXext 
+    libX11 
+    qt4
+    libXScrnSaver
+    libSM
+    libICE
+    libXi
+    libXrender
+    libXrandr
+    freetype
+    fontconfig
+    zlib
+    glib
+  ];
+
+  phases = "unpackPhase installPhase";
+
+  installPhase = ''
+    mkdir -p $out/{opt/skype/,bin}
+    cp -r * $out/opt/skype/
+
+    fullPath=
+    for i in $buildNativeInputs; do
+      fullPath=$fullPath''${fullPath:+:}$i/lib
+    done
+
+    dynlinker="$(cat $NIX_GCC/nix-support/dynamic-linker)"
+          
+    cat > $out/bin/skype << EOF
+    #!${stdenv.shell}
+    export LD_LIBRARY_PATH=$fullPath:$LD_LIBRARY_PATH
+    $dynlinker $out/opt/skype/skype --resources=$out/opt/skype "\$@"
+    EOF
+
+    chmod +x $out/bin/skype
+
+    # Desktop icon for Skype
+    patch skype.desktop << EOF
+    5c5
+    < Icon=skype.png
+    ---
+    > Icon=$out/opt/skype/icons/SkypeBlue_48x48.png
+    EOF
+    mkdir -p $out/share/applications
+    mv skype.desktop $out/share/applications
+  '';
+
+  meta = {
+      description = "A P2P-VoiceIP client";
+      homepage = http://www.skype.com;
+      license = "skype-eula";
+  };
+}
diff --git a/pkgs/applications/networking/instant-messengers/telepathy/telepathy-gabble/default.nix b/pkgs/applications/networking/instant-messengers/telepathy/gabble/default.nix
index 154057b9377e4..154057b9377e4 100644
--- a/pkgs/applications/networking/instant-messengers/telepathy/telepathy-gabble/default.nix
+++ b/pkgs/applications/networking/instant-messengers/telepathy/gabble/default.nix
diff --git a/pkgs/applications/networking/instant-messengers/twinkle/default.nix b/pkgs/applications/networking/instant-messengers/twinkle/default.nix
new file mode 100644
index 0000000000000..0824210c4b56c
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/twinkle/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, pkgconfig, commoncpp2, ccrtp, openssl, boost
+, libsndfile, libxml2, libjpeg, readline, qt3, perl, file
+, alsaLib, speex, libzrtpcpp, xorg }:
+        
+stdenv.mkDerivation {
+  name = "twinkle-1.4.2";
+
+  src = fetchurl {
+    url = http://www.xs4all.nl/~mfnboer/twinkle/download/twinkle-1.4.2.tar.gz;
+    sha256 = "19c9gqam78srsgv0463g7lfnv4mn5lvbxx3zl87bnm0vmk3qcxl0";
+  };
+
+  configureFlags = "--with-extra-includes=${libjpeg}/include";
+
+  buildInputs =
+    [ pkgconfig commoncpp2 ccrtp openssl boost libsndfile
+      libxml2 libjpeg readline qt3 perl file
+      # optional ? :
+      alsaLib
+      speex libzrtpcpp xorg.libX11 xorg.libXaw xorg.libICE xorg.libXext
+    ];
+
+  meta = { 
+    homepage = http://www.xs4all.nl/~mfnboer/twinkle/index.html;
+    license = "GPL";
+    maintainers = [ stdenv.lib.maintainers.marcweber ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}