diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2013-06-27 00:09:26 +0200 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2013-06-27 00:09:26 +0200 |
commit | 538a1d3aa14358446e66dfe41ccd82fa8f032e9b (patch) | |
tree | 65bf6df40bfe7f051ec8176791dab8f51a808a74 /pkgs/applications/networking/instant-messengers/sflphone | |
parent | 53f38dcbd041b95c09dabae536fb3ff73d3bb61d (diff) | |
download | nixpkgs-538a1d3aa14358446e66dfe41ccd82fa8f032e9b.tar nixpkgs-538a1d3aa14358446e66dfe41ccd82fa8f032e9b.tar.gz nixpkgs-538a1d3aa14358446e66dfe41ccd82fa8f032e9b.tar.bz2 nixpkgs-538a1d3aa14358446e66dfe41ccd82fa8f032e9b.tar.lz nixpkgs-538a1d3aa14358446e66dfe41ccd82fa8f032e9b.tar.xz nixpkgs-538a1d3aa14358446e66dfe41ccd82fa8f032e9b.tar.zst nixpkgs-538a1d3aa14358446e66dfe41ccd82fa8f032e9b.zip |
Making sflphone build, and its gnome client too.
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/sflphone')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/sflphone/default.nix | 83 |
1 files changed, 65 insertions, 18 deletions
diff --git a/pkgs/applications/networking/instant-messengers/sflphone/default.nix b/pkgs/applications/networking/instant-messengers/sflphone/default.nix index 4dbfa3da979..79b554798ee 100644 --- a/pkgs/applications/networking/instant-messengers/sflphone/default.nix +++ b/pkgs/applications/networking/instant-messengers/sflphone/default.nix @@ -1,8 +1,10 @@ -{ stdenv, fetchurl, libyaml, alsaLib, openssl, libuuid, pkgconfig, pulseaudio, libsamplerate, -commoncpp2, ccrtp, libzrtpcpp, dbus, dbus_cplusplus, expat, pcre, gsm, speex, ilbc, libopus, -autoconf, automake, libtool, gettext, perl }: +{ stdenv, fetchurl, libyaml, alsaLib, openssl, libuuid, pkgconfig, pulseaudio, libsamplerate +, commoncpp2, ccrtp, libzrtpcpp, dbus, dbus_cplusplus, expat, pcre, gsm, speex, ilbc, libopus +, autoconf, automake, libtool, gettext, perl +, cmake, qt4 +, gtk, glib, dbus_glib, libnotify, intltool }: -stdenv.mkDerivation rec { +let name = "sflphone-1.2.3"; src = fetchurl { @@ -10,23 +12,68 @@ stdenv.mkDerivation rec { sha256 = "0aiwlky7mp5l51a7kkhkmaz7ivapypar291kdxzdxl1s3qy0x6fd"; }; - patches = [ ./libzrtpcpp-cflags.patch ]; + meta = { + homepage = http://sflphone.org/; + license = "GPLv3+"; + description = "Free software enterprise-class softphone for GNU/Linux"; + platforms = with stdenv.lib.platforms; linux; + maintainers = with stdenv.lib.maintainers; [viric]; + }; + +in +rec { + daemon = stdenv.mkDerivation { + name = name + "-daemon"; + + inherit src; + + patches = [ ./libzrtpcpp-cflags.patch ]; - preConfigure = '' - cd daemon + preConfigure = '' + cd daemon - # Post patch, required - autoreconf -vfi + # Post patch, required + autoreconf -vfi + + cd libs + bash ./compile_pjsip.sh + cd .. + ''; + + configureFlags = "--with-expat --with-expat-inc=${expat}/include " + + "--with-expat-lib=-lexpat --with-opus "; + + buildInputs = [ libyaml alsaLib openssl libuuid pkgconfig pulseaudio libsamplerate + commoncpp2 ccrtp libzrtpcpp dbus dbus_cplusplus expat pcre gsm speex ilbc libopus + autoconf automake libtool gettext perl ]; + }; - cd libs - bash ./compile_pjsip.sh - cd .. - ''; + # This fails still. + # I don't know the best way to make this a KDE program (with switchable kde + # libs, like digikam for example) + /* + kde = stdenv.mkDerivation { + name = name + "-kde"; - configureFlags = "--with-expat --with-expat-inc=${expat}/include " + - "--with-expat-lib=-lexpat --with-opus "; + inherit src; - buildInputs = [ libyaml alsaLib openssl libuuid pkgconfig pulseaudio libsamplerate - commoncpp2 ccrtp libzrtpcpp dbus dbus_cplusplus expat pcre gsm speex ilbc libopus - autoconf automake libtool gettext perl ]; + preConfigure = '' + cd kde + ''; + + buildInputs = [ daemon cmake qt4 pkgconfig ]; + }; + */ + + gnome = stdenv.mkDerivation { + name = name + "-gnome"; + + inherit src; + + preConfigure = '' + cd gnome + ''; + + buildInputs = [ daemon pkgconfig gtk glib dbus_glib libnotify intltool ]; + }; } |