tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
mediastreamer2: 2.12.1 -> 2.14.0
Michael Raskin
9 years ago
0bfe4bb9
599653de
+15
-20
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
mediastreamer
default.nix
+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
3
-
, ortp, libv4l, libpcap, srtp, vim
3
3
+
, ortp, libv4l, libpcap, srtp, fetchFromGitHub, cmake, bctoolbox, doxygen
4
4
+
, python, libXext, libmatroska, openssl
4
5
}:
5
6
6
7
stdenv.mkDerivation rec {
7
7
-
name = "mediastreamer-2.12.1";
8
8
+
baseName = "mediastreamer2";
9
9
+
version = "2.14.0";
10
10
+
name = "${baseName}-${version}";
8
11
9
9
-
src = fetchurl {
10
10
-
url = "mirror://savannah/linphone/mediastreamer/${name}.tar.gz";
11
11
-
sha256 = "1rzjh2ln8qd6jvfmxlnbrcx2vbajx2j9hblqq2gdn10sf97qvgqd";
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "BelledonneCommunications";
14
14
+
repo = "${baseName}";
15
15
+
rev = "${version}";
16
16
+
sha256 = "1b59rzsaw54mhy4pz9hndmim4rgidkn7s6c4iyl34mz58lwxpmqp";
12
17
};
13
18
14
19
patches = [ ./plugins_dir.patch ];
15
20
16
16
-
postPatch = ''
17
17
-
sed -i "s/\(SRTP_LIBS=\"\$SRTP_LIBS -lsrtp\"\)/SRTP_LIBS=\"$(pkg-config --libs-only-l libsrtp)\"/g" configure
18
18
-
'';
19
19
-
20
20
-
nativeBuildInputs = [ pkgconfig intltool ];
21
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
25
-
ortp libv4l libpcap srtp
26
26
-
vim
26
26
+
ortp libv4l libpcap srtp bctoolbox libXext libmatroska
27
27
+
openssl
27
28
];
28
29
29
29
-
configureFlags = [
30
30
-
"--enable-external-ortp"
31
31
-
"--with-srtp=${srtp}"
32
32
-
"--enable-xv"
33
33
-
"--enable-glx"
34
34
-
];
35
35
-
36
36
-
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
30
30
+
NIX_CFLAGS_COMPILE = " -DGIT_VERSION=\"v2.14.0\" -Wno-error=deprecated-declarations ";
31
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";