nixpkgs/pkgs/development/libraries/mediastreamer/default.nix

110 lines
2.0 KiB
Nix
Raw Normal View History

{ alsaLib
, bctoolbox
, bzrtp
, cmake
, doxygen
, fetchFromGitLab
, fetchpatch
, ffmpeg_3
, glew
, gsm
, intltool
, libGL
, libGLU
, libX11
, libXext
, libXv
, libmatroska
, libopus
, libpcap
, libpulseaudio
, libtheora
, libupnp
, libv4l
, libvpx
, ortp
, pkg-config
, python
, SDL
, speex
, srtp
, lib, stdenv
2015-04-06 23:06:50 +01:00
}:
stdenv.mkDerivation rec {
pname = "mediastreamer2";
2021-03-18 18:09:34 +00:00
version = "4.4.35";
2016-09-06 10:28:54 +01:00
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
rev = version;
2021-03-18 18:09:34 +00:00
sha256 = "18qmg678m087k7qsaxwfcv2p875z2kpy91pqryiv955km40drl0g";
};
2018-02-10 05:18:44 +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.
2018-02-10 05:18:44 +00:00
./plugins_dir.patch
];
nativeBuildInputs = [
cmake
doxygen
intltool
pkg-config
python
];
2015-04-06 23:06:50 +01:00
propagatedBuildInputs = [
alsaLib
bctoolbox
bzrtp
ffmpeg_3
glew
gsm
libGL
libGLU
libX11
libXext
libXv
libmatroska
libopus
libpcap
libpulseaudio
libtheora
libupnp
libv4l
libvpx
ortp
SDL
speex
srtp
2015-04-06 23:06:50 +01:00
];
# Do not build static libraries
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
2019-10-30 02:23:29 +00:00
NIX_CFLAGS_COMPILE = toString [
"-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
];
NIX_LDFLAGS = "-lXext";
meta = with lib; {
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";
homepage = "http://www.linphone.org/technical-corner/mediastreamer2";
license = licenses.gpl3;
2015-04-06 23:06:50 +01:00
platforms = platforms.linux;
maintainers = with maintainers; [ jluttine ];
2015-04-06 23:06:50 +01:00
};
}