summary refs log tree commit diff
path: root/pkgs/development/libraries/bzrtp/default.nix
blob: 42453848066afadb350dd45327864cba66218b9e (plain) (blame)
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
{ stdenv, cmake, fetchFromGitHub, bctoolbox, sqlite }:

stdenv.mkDerivation rec {
  baseName = "bzrtp";
  version = "1.0.6";
  name = "${baseName}-${version}";

  src = fetchFromGitHub {
    owner = "BelledonneCommunications";
    repo = "${baseName}";
    rev = "${version}";
    sha256 = "0438zzxp82bj5fmvqnwlljkgrz9ab5qm5lgpwwgmg1cp78bp2l45";
  };

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

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

  meta = with stdenv.lib; {
    description = "BZRTP is an opensource implementation of ZRTP keys exchange protocol";
    homepage = https://github.com/BelledonneCommunications/bzrtp;
    license = licenses.lgpl21;
    platforms = platforms.all;
  };
}