From 34be37b51e33761b2de5941e67cd0dcb88aaa5c5 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Sun, 20 Sep 2009 17:01:19 +0000 Subject: [PATCH] adding twinkle, a voice over IP phone software svn path=/nixpkgs/trunk/; revision=17303 --- .../networking/twinkle/default.nix | 27 +++++++++++++++++++ pkgs/development/libraries/ccrtp/default.nix | 19 +++++++++++++ .../libraries/commoncpp2/default.nix | 20 ++++++++++++++ .../libraries/libzrtpcpp/default.nix | 19 +++++++++++++ pkgs/top-level/all-packages.nix | 20 ++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 pkgs/applications/networking/twinkle/default.nix create mode 100644 pkgs/development/libraries/ccrtp/default.nix create mode 100644 pkgs/development/libraries/commoncpp2/default.nix create mode 100644 pkgs/development/libraries/libzrtpcpp/default.nix diff --git a/pkgs/applications/networking/twinkle/default.nix b/pkgs/applications/networking/twinkle/default.nix new file mode 100644 index 000000000000..04141a51984f --- /dev/null +++ b/pkgs/applications/networking/twinkle/default.nix @@ -0,0 +1,27 @@ +args: with args; +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 qt libjpeg perl file + # optional ? : + alsaLib + speex libzrtpcpp libX11 libXaw libICE libXext + ]; + + + meta = { + description = "softphone for your voice over IP"; + homepage = http://www.xs4all.nl/~mfnboer/twinkle/index.html; + license = "GPL"; + maintainers = [args.lib.maintainers.marcweber]; + platforms = args.lib.platforms.linux; + }; +} diff --git a/pkgs/development/libraries/ccrtp/default.nix b/pkgs/development/libraries/ccrtp/default.nix new file mode 100644 index 000000000000..d8b4793dccaa --- /dev/null +++ b/pkgs/development/libraries/ccrtp/default.nix @@ -0,0 +1,19 @@ +args: with args; +stdenv.mkDerivation { + name = "ccrtp-1.7.0"; + + src = fetchurl { + url = mirror://gnu/ccrtp/ccrtp-1.7.0.tar.gz; + sha256 = "1bjn5l476nk34gipz4jl2p83m735gzanzr046zrkx423zipx4g4j"; + }; + + buildInputs = [openssl pkgconfig libgcrypt commoncpp2]; + + meta = { + description = "GNU ccRTP is an implementation of RTP, the real-time transport protocol from the IETF"; + homepage = "http://www.gnu.org/software/ccrtp/"; + license = "GPLv2"; + maintainers = [args.lib.maintainers.marcweber]; + platforms = args.lib.platforms.linux; + }; +} diff --git a/pkgs/development/libraries/commoncpp2/default.nix b/pkgs/development/libraries/commoncpp2/default.nix new file mode 100644 index 000000000000..251c6cabdc03 --- /dev/null +++ b/pkgs/development/libraries/commoncpp2/default.nix @@ -0,0 +1,20 @@ +args: with args; +stdenv.mkDerivation { + name = "commoncpp2-1.7.3"; + + src = fetchurl { + url = http://ftp.gnu.org/pub/gnu/commoncpp/commoncpp2-1.7.3.tar.gz; + sha256 = "11akz0gwr4xq5wbgbrb8ixkqmn8pmrwc19b9yw8lydvd3rh5gamk"; + }; + + buildInputs = []; + + meta = { + description = "highly portable application framework for threading,sockets, realtime network streaming, persistance, and file access"; + + homepage = http://sourceforge.net/projects/cplusplus/; + license = "LGPL"; + maintainers = [args.lib.maintainers.marcweber]; + platforms = args.lib.platforms.linux; + }; +} diff --git a/pkgs/development/libraries/libzrtpcpp/default.nix b/pkgs/development/libraries/libzrtpcpp/default.nix new file mode 100644 index 000000000000..a57f7135cdb5 --- /dev/null +++ b/pkgs/development/libraries/libzrtpcpp/default.nix @@ -0,0 +1,19 @@ +args: with args; +stdenv.mkDerivation { + name = "libzrtpcpp-1.4.1.tar"; + + src = fetchurl { + url = mirror://gnu/ccrtp/libzrtpcpp-1.4.1.tar.gz; + sha256 = "0gj5xiv15xnxdbppa06fy02j8jg0zm1capva4nhbpgzg08n7p8y0"; + }; + + buildInputs = [commoncpp2 openssl pkgconfig ccrtp]; + + meta = { + description = "GNU RTP stack for the zrtp protocol developed by Phil Zimmermann"; + homepage = "http://www.gnutelephony.org/index.php/GNU_ZRTP"; + license = "GPLv2"; + maintainers = [args.lib.maintainers.marcweber]; + platforms = args.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4386e5d8f391..eb8e30604644 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2946,6 +2946,10 @@ let inherit fetchurl stdenv pkgconfig cairo x11 fontconfig freetype libsigcxx; }; + ccrtp = import ../development/libraries/ccrtp { + inherit fetchurl stdenv lib pkgconfig openssl libgcrypt commoncpp2; + }; + chipmunk = builderDefsPackage (import ../development/libraries/chipmunk) { inherit cmake freeglut mesa; inherit (xlibs) libX11 xproto inputproto libXi libXmu; @@ -2988,6 +2992,10 @@ let inherit fetchurl stdenv; }; + commoncpp2 = import ../development/libraries/commoncpp2 { + inherit stdenv fetchurl lib; + }; + console_kit = import ../development/libraries/console-kit { inherit stdenv fetchurl pkgconfig dbus_glib zlib pam policy_kit; inherit (gtkLibs) glib; @@ -3878,6 +3886,10 @@ let inherit fetchurl stdenv zlib; }; + libzrtpcpp = import ../development/libraries/libzrtpcpp { + inherit fetchurl stdenv lib commoncpp2 openssl pkgconfig ccrtp; + }; + lightning = import ../development/libraries/lightning { inherit fetchurl stdenv; }; @@ -7462,6 +7474,14 @@ let inherit fetchurl stdenv diffutils gnutar gnupatch which; }; + twinkle = import ../applications/networking/twinkle { + inherit fetchurl stdenv lib pkgconfig commoncpp2 ccrtp openssl speex libjpeg perl + libzrtpcpp libsndfile libxml2 file readline alsaLib; + qt = qt3; + boost = boostFull; + inherit (xlibs) libX11 libXaw libICE libXext; + }; + unison = import ../applications/networking/sync/unison { inherit fetchurl stdenv ocaml lablgtk makeWrapper; inherit (xorg) xset fontschumachermisc;