1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/mediastreamer/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, alsaLib, libpulseaudio, speex, gsm
2015-04-06 23:06:50 +01:00
, libopus, ffmpeg, libX11, libXv, mesa, glew, libtheora, libvpx, SDL, libupnp
, ortp, libv4l, libpcap, srtp, vim
}:
stdenv.mkDerivation rec {
2015-08-26 16:18:53 +01:00
name = "mediastreamer-2.11.2";
src = fetchurl {
url = "mirror://savannah/linphone/mediastreamer/${name}.tar.gz";
2015-08-26 16:18:53 +01:00
sha256 = "1g6gawrlz1lixzs1kzckm3rxc401ww8pi00x7r5kb84bdijb02cc";
};
2015-04-06 23:06:50 +01:00
postPatch = ''
sed -i "s/\(SRTP_LIBS=\"\$SRTP_LIBS -lsrtp\"\)/SRTP_LIBS=\"$(pkg-config --libs-only-l libsrtp)\"/g" configure
'';
2015-04-06 23:06:50 +01:00
# TODO: make it load plugins from *_PLUGIN_PATH
nativeBuildInputs = [ pkgconfig intltool ];
2015-04-06 23:06:50 +01:00
propagatedBuildInputs = [
alsaLib libpulseaudio speex gsm libopus
2015-04-06 23:06:50 +01:00
ffmpeg libX11 libXv mesa glew libtheora libvpx SDL libupnp
ortp libv4l libpcap srtp
vim
];
configureFlags = [
"--enable-external-ortp"
"--with-srtp=${srtp}"
];
meta = with stdenv.lib; {
description = "a powerful and lightweight streaming engine specialized for voice/video telephony applications";
homepage = http://www.linphone.org/technical-corner/mediastreamer2/overview;
license = licenses.gpl2;
platforms = platforms.linux;
};
}