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

45 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, alsaLib, libpulseaudio, speex, gsm
2015-04-07 00:06:50 +02:00
, libopus, ffmpeg, libX11, libXv, mesa, glew, libtheora, libvpx, SDL, libupnp
, ortp, libv4l, libpcap, srtp, vim
}:
stdenv.mkDerivation rec {
name = "mediastreamer-2.12.1";
src = fetchurl {
url = "mirror://savannah/linphone/mediastreamer/${name}.tar.gz";
sha256 = "1rzjh2ln8qd6jvfmxlnbrcx2vbajx2j9hblqq2gdn10sf97qvgqd";
};
patches = [ ./plugins_dir.patch ];
2015-04-07 00:06:50 +02:00
postPatch = ''
sed -i "s/\(SRTP_LIBS=\"\$SRTP_LIBS -lsrtp\"\)/SRTP_LIBS=\"$(pkg-config --libs-only-l libsrtp)\"/g" configure
'';
2015-04-07 00:06:50 +02:00
nativeBuildInputs = [ pkgconfig intltool ];
2015-04-07 00:06:50 +02:00
propagatedBuildInputs = [
alsaLib libpulseaudio speex gsm libopus
2015-04-07 00:06:50 +02:00
ffmpeg libX11 libXv mesa glew libtheora libvpx SDL libupnp
ortp libv4l libpcap srtp
vim
];
configureFlags = [
"--enable-external-ortp"
"--with-srtp=${srtp}"
"--enable-xv"
"--enable-glx"
2015-04-07 00:06:50 +02:00
];
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
2015-04-07 00:06:50 +02:00
meta = with stdenv.lib; {
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";
2015-04-07 00:06:50 +02:00
homepage = http://www.linphone.org/technical-corner/mediastreamer2/overview;
license = licenses.gpl2;
platforms = platforms.linux;
};
}