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