1{ bctoolbox
2, cmake
3, fetchFromGitLab
4, lib, stdenv
5}:
6
7stdenv.mkDerivation rec {
8 pname = "ortp";
9 version = "4.5.1";
10
11 src = fetchFromGitLab {
12 domain = "gitlab.linphone.org";
13 owner = "public";
14 group = "BC";
15 repo = pname;
16 rev = version;
17 sha256 = "1lc1j7wvkyp5lhcflq3h5y7n8aiwgwj84ffm81ggbsmavamgwkk7";
18 };
19
20 # Do not build static libraries
21 cmakeFlags = [ "-DENABLE_STATIC=NO" ];
22
23 NIX_CFLAGS_COMPILE = "-Wno-error=stringop-truncation";
24
25 buildInputs = [ bctoolbox ];
26 nativeBuildInputs = [ cmake ];
27
28 meta = with lib; {
29 description = "A Real-Time Transport Protocol (RFC3550) stack";
30 homepage = "https://linphone.org/technical-corner/ortp";
31 license = licenses.gpl3Plus;
32 platforms = platforms.all;
33 maintainers = with maintainers; [ jluttine ];
34 };
35}