2015-04-07 03:15:57 +02:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, readline, openldap, cyrus_sasl, libupnp
|
2016-09-06 00:53:33 +02:00
|
|
|
, zlib, libxml2, gtk2, libnotify, speex, ffmpeg, libX11, libsoup, udev
|
2015-04-07 03:15:57 +02:00
|
|
|
, ortp, mediastreamer, sqlite, belle-sip, libosip, libexosip
|
2016-09-06 18:17:14 +02:00
|
|
|
, mediastreamer-openh264, bctoolbox, makeWrapper, fetchFromGitHub, cmake
|
|
|
|
, libmatroska, bcunit, doxygen, gdk_pixbuf, glib, cairo, pango, polarssl
|
2015-04-07 03:15:57 +02:00
|
|
|
}:
|
2013-02-16 21:48:47 +01:00
|
|
|
|
2011-08-18 14:52:41 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-09-06 18:17:14 +02:00
|
|
|
baseName = "linphone";
|
|
|
|
version = "3.10.2";
|
|
|
|
name = "${baseName}-${version}";
|
2011-01-13 21:49:58 +01:00
|
|
|
|
2016-09-06 18:17:14 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BelledonneCommunications";
|
|
|
|
repo = "${baseName}";
|
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "053gad4amdbq5za8f2n9j5q59nkky0w098zbsa3dvpcqvv7ar16p";
|
2011-01-13 21:49:58 +01:00
|
|
|
};
|
|
|
|
|
2015-04-07 03:15:57 +02:00
|
|
|
buildInputs = [
|
|
|
|
readline openldap cyrus_sasl libupnp zlib libxml2 gtk2 libnotify speex ffmpeg libX11
|
2016-09-06 18:17:14 +02:00
|
|
|
polarssl libsoup udev ortp mediastreamer sqlite belle-sip libosip libexosip
|
|
|
|
bctoolbox libmatroska bcunit gdk_pixbuf glib cairo pango
|
2015-04-07 03:15:57 +02:00
|
|
|
];
|
2011-01-13 21:49:58 +01:00
|
|
|
|
2016-09-06 18:17:14 +02:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig makeWrapper cmake doxygen ];
|
2012-02-17 14:03:33 +01:00
|
|
|
|
2016-09-06 18:17:14 +02:00
|
|
|
NIX_CFLAGS_COMPILE = " -Wno-error -I${glib.dev}/include/glib-2.0
|
|
|
|
-I${glib.out}/lib/glib-2.0/include -I${gtk2.dev}/include/gtk-2.0/
|
|
|
|
-I${cairo.dev}/include/cairo -I${pango.dev}/include/pango-1.0
|
|
|
|
-I${gtk2}/lib/gtk-2.0/include
|
|
|
|
-DLIBLINPHONE_GIT_VERSION=\"v${version}\"
|
|
|
|
";
|
2013-02-16 21:48:47 +01:00
|
|
|
|
2015-08-26 22:17:41 +02:00
|
|
|
postInstall = ''
|
|
|
|
for i in $(cd $out/bin && ls); do
|
|
|
|
wrapProgram $out/bin/$i --set MEDIASTREAMER_PLUGINS_DIR ${mediastreamer-openh264}/lib/mediastreamer/plugins
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2015-04-07 03:15:57 +02:00
|
|
|
meta = with stdenv.lib; {
|
2011-01-13 21:49:58 +01:00
|
|
|
homepage = http://www.linphone.org/;
|
|
|
|
description = "Open Source video SIP softphone";
|
2015-04-07 03:15:57 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2011-01-13 21:49:58 +01:00
|
|
|
};
|
|
|
|
}
|