tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
liblinphone: init at unstable-2020-03-20
Jaakko Luttinen
5 years ago
1e515920
d4988c7c
+152
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
liblinphone
default.nix
top-level
all-packages.nix
+150
pkgs/development/libraries/liblinphone/default.nix
···
1
1
+
{ bcg729
2
2
+
, bctoolbox
3
3
+
, bcunit
4
4
+
, belcard
5
5
+
, belle-sip
6
6
+
, belr
7
7
+
, bzrtp
8
8
+
, cairo
9
9
+
, cmake
10
10
+
, cyrus_sasl
11
11
+
, doxygen
12
12
+
, fetchFromGitLab
13
13
+
, fetchurl
14
14
+
, ffmpeg
15
15
+
, gdk-pixbuf
16
16
+
, git
17
17
+
, glib
18
18
+
, graphviz
19
19
+
, gtk2
20
20
+
, intltool
21
21
+
, libexosip
22
22
+
, libmatroska
23
23
+
, libnotify
24
24
+
, libosip
25
25
+
, libsoup
26
26
+
, libupnp
27
27
+
, libX11
28
28
+
, libxml2
29
29
+
, lime
30
30
+
, makeWrapper
31
31
+
, mbedtls
32
32
+
, mediastreamer
33
33
+
, mediastreamer-openh264
34
34
+
, openldap
35
35
+
, ortp
36
36
+
, pango
37
37
+
, pkgconfig
38
38
+
, python
39
39
+
, readline
40
40
+
, soci
41
41
+
, speex
42
42
+
, sqlite
43
43
+
, stdenv
44
44
+
, udev
45
45
+
, xercesc
46
46
+
, xsd
47
47
+
, zlib
48
48
+
}:
49
49
+
let
50
50
+
# Got the following error when building:
51
51
+
#
52
52
+
# Your version of Doxygen (1.8.17) is known to malfunction with some of our
53
53
+
# macro definitions, which causes errors while wrapprers generation. Please
54
54
+
# install an older version of Doxygen (< 1.8.17) or disable documentation
55
55
+
# and wrapper generation.
56
56
+
#
57
57
+
# So, let's then use 1.8.16 version of doxygen in this derivation. Hopefully
58
58
+
# this workaround can be removed with some newer release of liblinphone.
59
59
+
doxygen_1_8_16 = doxygen.overrideAttrs (
60
60
+
oldAttrs: rec {
61
61
+
name = "doxygen-1.8.16";
62
62
+
src = fetchurl {
63
63
+
urls = [
64
64
+
"mirror://sourceforge/doxygen/${name}.src.tar.gz" # faster, with https, etc.
65
65
+
"http://doxygen.nl/files/${name}.src.tar.gz"
66
66
+
];
67
67
+
sha256 = "10iwv8bcz5b5cd85gg8pgn0bmyg04n9hs36xn7ggjjnvynv1z67z";
68
68
+
};
69
69
+
buildInputs = oldAttrs.buildInputs ++ [ git ];
70
70
+
}
71
71
+
);
72
72
+
in
73
73
+
stdenv.mkDerivation rec {
74
74
+
pname = "liblinphone";
75
75
+
# Using master branch for linphone-desktop caused a chain reaction that many
76
76
+
# of its dependencies needed to use master branch too.
77
77
+
version = "unstable-2020-03-20";
78
78
+
79
79
+
src = fetchFromGitLab {
80
80
+
domain = "gitlab.linphone.org";
81
81
+
owner = "public";
82
82
+
group = "BC";
83
83
+
repo = pname;
84
84
+
rev = "1d762a3e0e304aa579798aed4400d2cee2c1ffa0";
85
85
+
sha256 = "0ja38payyqbd8z6q5l5w6hi7xarmfj5021gh0qdk0j832br4c6c3";
86
86
+
};
87
87
+
88
88
+
# Do not build static libraries
89
89
+
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
90
90
+
91
91
+
# TODO: Not sure if all these inputs are actually needed. Most of them were
92
92
+
# defined when liblinphone and linphone-desktop weren't separated yet, so some
93
93
+
# of them might not be needed for liblinphone alone.
94
94
+
buildInputs = [
95
95
+
(python.withPackages (ps: [ ps.pystache ps.six ]))
96
96
+
bcg729
97
97
+
bctoolbox
98
98
+
belcard
99
99
+
belle-sip
100
100
+
belr
101
101
+
bzrtp
102
102
+
cairo
103
103
+
cyrus_sasl
104
104
+
ffmpeg
105
105
+
gdk-pixbuf
106
106
+
git
107
107
+
glib
108
108
+
gtk2
109
109
+
libX11
110
110
+
libexosip
111
111
+
libmatroska
112
112
+
libnotify
113
113
+
libosip
114
114
+
libsoup
115
115
+
libupnp
116
116
+
libxml2
117
117
+
lime
118
118
+
mbedtls
119
119
+
mediastreamer
120
120
+
openldap
121
121
+
ortp
122
122
+
pango
123
123
+
readline
124
124
+
soci
125
125
+
speex
126
126
+
sqlite
127
127
+
udev
128
128
+
xercesc
129
129
+
xsd
130
130
+
zlib
131
131
+
];
132
132
+
133
133
+
nativeBuildInputs = [
134
134
+
bcunit
135
135
+
cmake
136
136
+
doxygen_1_8_16
137
137
+
graphviz
138
138
+
intltool
139
139
+
makeWrapper
140
140
+
pkgconfig
141
141
+
];
142
142
+
143
143
+
meta = with stdenv.lib; {
144
144
+
homepage = "https://www.linphone.org/technical-corner/liblinphone";
145
145
+
description = "Library for SIP calls and instant messaging";
146
146
+
license = licenses.gpl3;
147
147
+
platforms = platforms.linux;
148
148
+
maintainers = with maintainers; [ jluttine ];
149
149
+
};
150
150
+
}
+2
pkgs/top-level/all-packages.nix
···
20562
20562
20563
20563
libdsk = callPackage ../misc/emulators/libdsk { };
20564
20564
20565
20565
+
liblinphone = callPackage ../development/libraries/liblinphone { };
20566
20566
+
20565
20567
links2 = callPackage ../applications/networking/browsers/links2 { };
20566
20568
20567
20569
linphone = callPackage ../applications/networking/instant-messengers/linphone { };