2022-05-18 14:49:53 +00:00
|
|
|
{ bctoolbox
|
2020-04-24 23:36:52 +00:00
|
|
|
, bzrtp
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
2023-03-27 19:17:25 +00:00
|
|
|
, ffmpeg_4
|
2020-04-24 23:36:52 +00:00
|
|
|
, glew
|
|
|
|
, gsm
|
2021-04-05 15:23:46 +00:00
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, libX11
|
|
|
|
, libXext
|
|
|
|
, libopus
|
|
|
|
, libpulseaudio
|
|
|
|
, libv4l
|
|
|
|
, libvpx
|
|
|
|
, ortp
|
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
|
|
|
, speex
|
|
|
|
, srtp
|
2021-04-05 15:23:46 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mediastreamer2";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "5.2.98";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
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;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-02e1nGSwlhEHwQH6WqBSKBlWQWAYa7lKdZaZ8/0SAxs=";
|
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
|
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
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
ffmpeg_4
|
2020-04-24 23:36:52 +00:00
|
|
|
glew
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libpulseaudio
|
|
|
|
libv4l
|
|
|
|
speex
|
|
|
|
srtp
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
# Optional
|
|
|
|
gsm # GSM audio codec
|
|
|
|
libopus # Opus audio codec
|
|
|
|
libvpx # VP8 video codec
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
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
|
2022-05-18 14:49:53 +00:00
|
|
|
"-DENABLE_UNIT_TESTS=NO" # Do not build test executables
|
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";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://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 ];
|
|
|
|
};
|
|
|
|
}
|