summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/linphone/default.nix
blob: a4a32327d0c64d2011e623b3c59b046a940b5218 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, intltool, pkgconfig, gtk, libglade, libosip, libexosip
, speex, readline, mediastreamer, libsoup }:

stdenv.mkDerivation rec {
  name = "linphone-3.5.2";

  src = fetchurl {
    url = "mirror://savannah/linphone/3.5.x/sources/${name}.tar.gz";
    sha256 = "0830iam7kgqphgk3q6qx93kp5wrf0gnm5air82jamy7377jxadys";
  };

  patches = [ ./fix-deprecated.patch ];

  buildInputs = [ gtk libglade libosip libexosip readline mediastreamer speex libsoup ];

  nativeBuildInputs = [ intltool pkgconfig ];

  preConfigure = "rm -r mediastreamer2 oRTP";

  configureFlags = "--enable-external-ortp --enable-external-mediastreamer";

  NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; # I'm lazy to fix these for them

  meta = {
    homepage = http://www.linphone.org/;
    description = "Open Source video SIP softphone";
    license = "GPLv2+";
    platforms = stdenv.lib.platforms.gnu;
  };
}