nixpkgs/pkgs/development/libraries/mediastreamer/default.nix
Lorenz Brun bafc9b9ff8 linphone: 4.2.5 -> 4.4.1
Co-authored-by: Thibault Lemaire <thibault.lemaire@protonmail.com>
Co-authored-by: Austin Butler <abutler@riotgames.com>
2022-04-26 21:43:56 +02:00

118 lines
2.2 KiB
Nix

{ alsa-lib
, bctoolbox
, bzrtp
, cmake
, doxygen
, fetchFromGitLab
, ffmpeg
, glew
, gsm
, intltool
, lib
, libGL
, libGLU
, libX11
, libXext
, libXv
, libmatroska
, libopus
, libpcap
, libpulseaudio
, libtheora
, libupnp
, libv4l
, libvpx
, ortp
, pkg-config
, python3
, qtbase
, qtdeclarative
, SDL
, speex
, srtp
, stdenv
}:
stdenv.mkDerivation rec {
pname = "mediastreamer2";
version = "5.1.20";
dontWrapQtApps = true;
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
rev = version;
sha256 = "sha256-u8YqF5BzyYIF9+XB90Eu6DlwXuu1FDOJUzxebj0errU=";
};
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
pkg-config
python3
qtbase
qtdeclarative
];
propagatedBuildInputs = [
# Made by BC
bctoolbox
bzrtp
ortp
# Vendored by BC but we use upstream, might cause problems
libmatroska
alsa-lib
ffmpeg
glew
gsm
libGL
libGLU
libX11
libXext
libXv
libopus
libpcap
libpulseaudio
libtheora
libupnp
libv4l
libvpx
SDL
speex
srtp
];
strictDeps = true;
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
];
NIX_LDFLAGS = "-lXext";
meta = with lib; {
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications. Part of the Linphone project";
homepage = "http://www.linphone.org/technical-corner/mediastreamer2";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ jluttine ];
};
}