lol

mediastreamer2: 2.12.1 -> 2.14.0

+15 -20
+15 -20
pkgs/development/libraries/mediastreamer/default.nix
··· 1 1 { stdenv, fetchurl, pkgconfig, intltool, alsaLib, libpulseaudio, speex, gsm 2 2 , libopus, ffmpeg, libX11, libXv, mesa, glew, libtheora, libvpx, SDL, libupnp 3 - , ortp, libv4l, libpcap, srtp, vim 3 + , ortp, libv4l, libpcap, srtp, fetchFromGitHub, cmake, bctoolbox, doxygen 4 + , python, libXext, libmatroska, openssl 4 5 }: 5 6 6 7 stdenv.mkDerivation rec { 7 - name = "mediastreamer-2.12.1"; 8 + baseName = "mediastreamer2"; 9 + version = "2.14.0"; 10 + name = "${baseName}-${version}"; 8 11 9 - src = fetchurl { 10 - url = "mirror://savannah/linphone/mediastreamer/${name}.tar.gz"; 11 - sha256 = "1rzjh2ln8qd6jvfmxlnbrcx2vbajx2j9hblqq2gdn10sf97qvgqd"; 12 + src = fetchFromGitHub { 13 + owner = "BelledonneCommunications"; 14 + repo = "${baseName}"; 15 + rev = "${version}"; 16 + sha256 = "1b59rzsaw54mhy4pz9hndmim4rgidkn7s6c4iyl34mz58lwxpmqp"; 12 17 }; 13 18 14 19 patches = [ ./plugins_dir.patch ]; 15 20 16 - postPatch = '' 17 - sed -i "s/\(SRTP_LIBS=\"\$SRTP_LIBS -lsrtp\"\)/SRTP_LIBS=\"$(pkg-config --libs-only-l libsrtp)\"/g" configure 18 - ''; 19 - 20 - nativeBuildInputs = [ pkgconfig intltool ]; 21 + nativeBuildInputs = [ pkgconfig intltool cmake doxygen python ]; 21 22 22 23 propagatedBuildInputs = [ 23 24 alsaLib libpulseaudio speex gsm libopus 24 25 ffmpeg libX11 libXv mesa glew libtheora libvpx SDL libupnp 25 - ortp libv4l libpcap srtp 26 - vim 26 + ortp libv4l libpcap srtp bctoolbox libXext libmatroska 27 + openssl 27 28 ]; 28 29 29 - configureFlags = [ 30 - "--enable-external-ortp" 31 - "--with-srtp=${srtp}" 32 - "--enable-xv" 33 - "--enable-glx" 34 - ]; 35 - 36 - NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; 30 + NIX_CFLAGS_COMPILE = " -DGIT_VERSION=\"v2.14.0\" -Wno-error=deprecated-declarations "; 31 + NIX_LDFLAGS = " -lXext -lssl "; 37 32 38 33 meta = with stdenv.lib; { 39 34 description = "A powerful and lightweight streaming engine specialized for voice/video telephony applications";