2020-03-20 15:04:15 +00:00
|
|
|
{ alsaLib
|
|
|
|
, bctoolbox
|
|
|
|
, bzrtp
|
|
|
|
, cmake
|
|
|
|
, doxygen
|
|
|
|
, fetchFromGitLab
|
2020-06-07 12:39:09 +00:00
|
|
|
, ffmpeg_3
|
2020-03-20 15:04:15 +00:00
|
|
|
, glew
|
|
|
|
, gsm
|
|
|
|
, intltool
|
2021-04-02 11:33:17 +00:00
|
|
|
, lib
|
2020-03-20 15:04:15 +00:00
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXv
|
|
|
|
, libmatroska
|
|
|
|
, libopus
|
|
|
|
, libpcap
|
|
|
|
, libpulseaudio
|
|
|
|
, libtheora
|
|
|
|
, libupnp
|
|
|
|
, libv4l
|
|
|
|
, libvpx
|
|
|
|
, ortp
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2021-04-02 08:07:21 +00:00
|
|
|
, python3
|
2020-03-20 15:04:15 +00:00
|
|
|
, SDL
|
|
|
|
, speex
|
|
|
|
, srtp
|
2021-04-02 11:33:17 +00:00
|
|
|
, stdenv
|
2015-04-06 22:06:50 +00:00
|
|
|
}:
|
2008-02-07 11:07:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-11-23 17:42:19 +00:00
|
|
|
pname = "mediastreamer2";
|
2021-04-02 08:07:21 +00:00
|
|
|
version = "4.5.1";
|
2016-09-06 09:28:54 +00:00
|
|
|
|
2020-03-20 15:04:15 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
2019-11-23 17:42:19 +00:00
|
|
|
repo = pname;
|
2020-12-07 18:10:33 +00:00
|
|
|
rev = version;
|
2021-04-02 08:07:21 +00:00
|
|
|
sha256 = "0aqma9834lzy1593qb9qwmzvzn50y6fzhmmg493jznf8977b0gsw";
|
2008-02-07 11:07:27 +00:00
|
|
|
};
|
|
|
|
|
2018-02-10 05:18:44 +00:00
|
|
|
patches = [
|
2020-03-20 15:04:15 +00:00
|
|
|
# Plugins directory is normally fixed during compile time. This patch makes
|
|
|
|
# it possible to set the plugins directory run time with an environment
|
|
|
|
# variable MEDIASTREAMER_PLUGINS_DIR. This makes it possible to construct a
|
|
|
|
# plugin directory with desired plugins and wrap executables so that the
|
|
|
|
# environment variable points to that directory.
|
2018-02-10 05:18:44 +00:00
|
|
|
./plugins_dir.patch
|
|
|
|
];
|
2015-08-26 20:15:31 +00:00
|
|
|
|
2020-03-20 15:04:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
intltool
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2021-04-02 08:07:21 +00:00
|
|
|
python3
|
2020-03-20 15:04:15 +00:00
|
|
|
];
|
2008-02-10 17:34:49 +00:00
|
|
|
|
2015-04-06 22:06:50 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-03-20 15:04:15 +00:00
|
|
|
alsaLib
|
|
|
|
bctoolbox
|
|
|
|
bzrtp
|
2020-06-07 12:39:09 +00:00
|
|
|
ffmpeg_3
|
2020-03-20 15:04:15 +00:00
|
|
|
glew
|
|
|
|
gsm
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXv
|
|
|
|
libmatroska
|
|
|
|
libopus
|
|
|
|
libpcap
|
|
|
|
libpulseaudio
|
|
|
|
libtheora
|
|
|
|
libupnp
|
|
|
|
libv4l
|
|
|
|
libvpx
|
|
|
|
ortp
|
|
|
|
SDL
|
|
|
|
speex
|
|
|
|
srtp
|
2015-04-06 22:06:50 +00:00
|
|
|
];
|
|
|
|
|
2021-03-26 09:54:03 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2020-03-20 15:04:15 +00:00
|
|
|
# Do not build static libraries
|
|
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
|
|
|
|
|
2019-10-30 02:23:29 +00:00
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
2019-11-23 17:42:19 +00:00
|
|
|
"-DGIT_VERSION=\"v${version}\""
|
2019-01-11 13:39:44 +00:00
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
"-Wno-error=cast-function-type"
|
2019-11-06 15:39:47 +00:00
|
|
|
"-Wno-error=stringop-truncation"
|
|
|
|
"-Wno-error=stringop-overflow"
|
2019-01-11 13:39:44 +00:00
|
|
|
];
|
2019-11-23 17:42:19 +00:00
|
|
|
NIX_LDFLAGS = "-lXext";
|
2015-11-20 08:11:13 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";
|
2020-03-20 15:04:15 +00:00
|
|
|
homepage = "http://www.linphone.org/technical-corner/mediastreamer2";
|
2021-04-02 11:33:17 +00:00
|
|
|
license = licenses.gpl3Only;
|
2015-04-06 22:06:50 +00:00
|
|
|
platforms = platforms.linux;
|
2020-03-20 15:04:15 +00:00
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2015-04-06 22:06:50 +00:00
|
|
|
};
|
2008-02-07 11:07:27 +00:00
|
|
|
}
|