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
|
2022-04-27 09:35:20 +00:00
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
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";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "5.1.20";
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
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;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-u8YqF5BzyYIF9+XB90Eu6DlwXuu1FDOJUzxebj0errU=";
|
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
|
2022-04-27 09:35:20 +00:00
|
|
|
qtbase
|
|
|
|
qtdeclarative
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
# Made by BC
|
2020-04-24 23:36:52 +00:00
|
|
|
bctoolbox
|
|
|
|
bzrtp
|
2022-04-27 09:35:20 +00:00
|
|
|
ortp
|
|
|
|
|
|
|
|
# Vendored by BC but we use upstream, might cause problems
|
|
|
|
libmatroska
|
|
|
|
|
|
|
|
alsa-lib
|
2021-05-28 09:39:13 +00:00
|
|
|
ffmpeg
|
2020-04-24 23:36:52 +00:00
|
|
|
glew
|
|
|
|
gsm
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libXv
|
|
|
|
libopus
|
|
|
|
libpcap
|
|
|
|
libpulseaudio
|
|
|
|
libtheora
|
|
|
|
libupnp
|
|
|
|
libv4l
|
|
|
|
libvpx
|
|
|
|
SDL
|
|
|
|
speex
|
|
|
|
srtp
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_STATIC=NO" # Do not build static libraries
|
|
|
|
"-DENABLE_QT_GL=ON" # Build necessary MSQOGL plugin for Linphone desktop
|
|
|
|
"-DCMAKE_C_FLAGS=-DGIT_VERSION=\"v${version}\""
|
|
|
|
"-DENABLE_STRICT=NO" # Disable -Werror
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
NIX_LDFLAGS = "-lXext";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications. Part of the Linphone project";
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|