2021-06-28 23:13:55 +00:00
|
|
|
{ alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, bctoolbox
|
|
|
|
, bzrtp
|
|
|
|
, cmake
|
|
|
|
, doxygen
|
|
|
|
, fetchFromGitLab
|
2021-05-28 09:39:13 +00:00
|
|
|
, ffmpeg
|
2020-04-24 23:36:52 +00:00
|
|
|
, glew
|
|
|
|
, gsm
|
|
|
|
, intltool
|
2021-04-05 15:23:46 +00:00
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libXv
|
|
|
|
, libmatroska
|
|
|
|
, libopus
|
|
|
|
, libpcap
|
|
|
|
, libpulseaudio
|
|
|
|
, libtheora
|
|
|
|
, libupnp
|
|
|
|
, libv4l
|
|
|
|
, libvpx
|
|
|
|
, ortp
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2021-04-05 15:23:46 +00:00
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
, SDL
|
|
|
|
, speex
|
|
|
|
, srtp
|
2021-04-05 15:23:46 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mediastreamer2";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "4.5.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
|
|
|
repo = pname;
|
2020-12-09 12:39:15 +00:00
|
|
|
rev = version;
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "sha256-n/EuXEQ9nJKC32PMvWkfP1G+E6uQQuu1/A168n8/cIY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# 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.
|
|
|
|
./plugins_dir.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
doxygen
|
|
|
|
intltool
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2021-04-05 15:23:46 +00:00
|
|
|
python3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
bctoolbox
|
|
|
|
bzrtp
|
2021-05-28 09:39:13 +00:00
|
|
|
ffmpeg
|
2020-04-24 23:36:52 +00:00
|
|
|
glew
|
|
|
|
gsm
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXv
|
|
|
|
libmatroska
|
|
|
|
libopus
|
|
|
|
libpcap
|
|
|
|
libpulseaudio
|
|
|
|
libtheora
|
|
|
|
libupnp
|
|
|
|
libv4l
|
|
|
|
libvpx
|
|
|
|
ortp
|
|
|
|
SDL
|
|
|
|
speex
|
|
|
|
srtp
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Do not build static libraries
|
|
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
|
|
"-DGIT_VERSION=\"v${version}\""
|
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
"-Wno-error=cast-function-type"
|
|
|
|
"-Wno-error=stringop-truncation"
|
|
|
|
"-Wno-error=stringop-overflow"
|
|
|
|
];
|
|
|
|
NIX_LDFLAGS = "-lXext";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";
|
|
|
|
homepage = "http://www.linphone.org/technical-corner/mediastreamer2";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|