1{ bctoolbox
2, cmake
3, fetchFromGitLab
4, sqlite
5, lib
6, stdenv
7}:
8
9stdenv.mkDerivation rec {
10 pname = "bzrtp";
11 version = "5.2.111";
12
13 src = fetchFromGitLab {
14 domain = "gitlab.linphone.org";
15 owner = "public";
16 group = "BC";
17 repo = pname;
18 rev = version;
19 hash = "sha256-sLvvQhJ9uVt/dx57xs9ftY/ETi46xmyGDH8372zpqj8=";
20 };
21
22 buildInputs = [ bctoolbox sqlite ];
23 nativeBuildInputs = [ cmake ];
24
25 # Do not build static libraries
26 cmakeFlags = [ "-DENABLE_STATIC=NO" ];
27
28 env.NIX_CFLAGS_COMPILE = toString [
29 # Needed with GCC 12
30 "-Wno-error=stringop-overflow"
31 "-Wno-error=unused-parameter"
32 ];
33
34 meta = with lib; {
35 description = "An opensource implementation of ZRTP keys exchange protocol. Part of the Linphone project.";
36 homepage = "https://gitlab.linphone.org/BC/public/bzrtp";
37 license = licenses.gpl3Plus;
38 platforms = platforms.all;
39 maintainers = with maintainers; [ jluttine ];
40 };
41}