2015-05-27 20:42:15 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, alsaLib, libpulseaudio, speex, gsm
|
2015-04-06 23:06:50 +01:00
|
|
|
, libopus, ffmpeg, libX11, libXv, mesa, glew, libtheora, libvpx, SDL, libupnp
|
2016-09-06 10:28:54 +01:00
|
|
|
, ortp, libv4l, libpcap, srtp, fetchFromGitHub, cmake, bctoolbox, doxygen
|
|
|
|
, python, libXext, libmatroska, openssl
|
2015-04-06 23:06:50 +01:00
|
|
|
}:
|
2008-02-07 11:07:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-06 10:28:54 +01:00
|
|
|
baseName = "mediastreamer2";
|
|
|
|
version = "2.14.0";
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BelledonneCommunications";
|
|
|
|
repo = "${baseName}";
|
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "1b59rzsaw54mhy4pz9hndmim4rgidkn7s6c4iyl34mz58lwxpmqp";
|
2008-02-07 11:07:27 +00:00
|
|
|
};
|
|
|
|
|
2015-08-26 21:15:31 +01:00
|
|
|
patches = [ ./plugins_dir.patch ];
|
|
|
|
|
2016-09-06 10:28:54 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool cmake doxygen python ];
|
2008-02-10 17:34:49 +00:00
|
|
|
|
2015-04-06 23:06:50 +01:00
|
|
|
propagatedBuildInputs = [
|
2015-05-27 20:42:15 +01:00
|
|
|
alsaLib libpulseaudio speex gsm libopus
|
2015-04-06 23:06:50 +01:00
|
|
|
ffmpeg libX11 libXv mesa glew libtheora libvpx SDL libupnp
|
2016-09-06 10:28:54 +01:00
|
|
|
ortp libv4l libpcap srtp bctoolbox libXext libmatroska
|
|
|
|
openssl
|
2015-04-06 23:06:50 +01:00
|
|
|
];
|
|
|
|
|
2016-09-06 10:28:54 +01:00
|
|
|
NIX_CFLAGS_COMPILE = " -DGIT_VERSION=\"v2.14.0\" -Wno-error=deprecated-declarations ";
|
|
|
|
NIX_LDFLAGS = " -lXext -lssl ";
|
2015-11-20 08:11:13 +00:00
|
|
|
|
2015-04-06 23:06:50 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";
|
2015-04-06 23:06:50 +01:00
|
|
|
homepage = http://www.linphone.org/technical-corner/mediastreamer2/overview;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2008-02-07 11:07:27 +00:00
|
|
|
}
|