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

47 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, alsaLib, libpulseaudio, speex, gsm
, libopus, ffmpeg, libX11, libXv, libGLU_combined, glew, libtheora, libvpx, SDL, libupnp
2016-09-06 10:28:54 +01:00
, ortp, libv4l, libpcap, srtp, fetchFromGitHub, cmake, bctoolbox, doxygen
2018-02-10 05:18:44 +00:00
, python, libXext, libmatroska, openssl, fetchpatch
2015-04-06 23:06:50 +01:00
}:
stdenv.mkDerivation rec {
2016-09-06 10:28:54 +01:00
baseName = "mediastreamer2";
2018-02-10 05:18:44 +00:00
version = "2.16.1";
2016-09-06 10:28:54 +01:00
name = "${baseName}-${version}";
src = fetchFromGitHub {
owner = "BelledonneCommunications";
repo = "${baseName}";
rev = "${version}";
2018-02-10 05:18:44 +00:00
sha256 = "02745bzl2r1jqvdqzyv94fjd4w92zr976la4c4nfvsy52waqah7j";
};
2018-02-10 05:18:44 +00:00
patches = [
(fetchpatch {
name = "allow-build-without-git.patch";
url = "https://github.com/BelledonneCommunications/mediastreamer2/commit/de3a24b795d7a78e78eab6b974e7ec5abf2259ac.patch";
sha256 = "1zqkrab42n4dha0knfsyj4q0wc229ma125gk9grj67ps7r7ipscy";
})
./plugins_dir.patch
];
2016-09-06 10:28:54 +01:00
nativeBuildInputs = [ pkgconfig intltool cmake doxygen python ];
2015-04-06 23:06:50 +01:00
propagatedBuildInputs = [
alsaLib libpulseaudio speex gsm libopus
ffmpeg libX11 libXv libGLU_combined glew libtheora libvpx SDL libupnp
2016-09-06 10:28:54 +01:00
ortp libv4l libpcap srtp bctoolbox libXext libmatroska
openssl
2015-04-06 23:06:50 +01:00
];
2016-09-06 10:28:54 +01:00
NIX_CFLAGS_COMPILE = " -DGIT_VERSION=\"v2.14.0\" -Wno-error=deprecated-declarations ";
NIX_LDFLAGS = " -lXext -lssl ";
2015-04-06 23:06:50 +01:00
meta = with stdenv.lib; {
description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";
2015-04-06 23:06:50 +01:00
homepage = http://www.linphone.org/technical-corner/mediastreamer2/overview;
license = licenses.gpl2;
platforms = platforms.linux;
};
}