aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/libraries/bzrtp/default.nix
blob: 4fe53a5d629de92a07f2f69234157fa7e33900d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ bctoolbox
, cmake
, fetchFromGitLab
, sqlite
, stdenv
}:

stdenv.mkDerivation rec {
  pname = "bzrtp";
  version = "4.4.0";

  src = fetchFromGitLab {
    domain = "gitlab.linphone.org";
    owner = "public";
    group = "BC";
    repo = pname;
    rev = version;
    sha256 = "1yjmsbqmymzl4r7sba6w4a2yld8m6hzafr6jf7sj0syhwpnc3zv6";
  };

  buildInputs = [ bctoolbox sqlite ];
  nativeBuildInputs = [ cmake ];

  # Do not build static libraries
  cmakeFlags = [ "-DENABLE_STATIC=NO" ];

  NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type";

  meta = with stdenv.lib; {
    description = "An opensource implementation of ZRTP keys exchange protocol";
    homepage = "https://gitlab.linphone.org/BC/public/bzrtp";
    # They have switched to GPLv3 on git HEAD so probably the next release will
    # be GPL3.
    license = licenses.lgpl21;
    platforms = platforms.all;
    maintainers = with maintainers; [ jluttine ];
  };
}