2020-03-20 16:01:19 +01:00
|
|
|
{ bctoolbox
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
|
|
|
, sqlite
|
|
|
|
, stdenv
|
|
|
|
}:
|
2018-02-10 06:20:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-20 16:01:19 +01:00
|
|
|
pname = "bzrtp";
|
|
|
|
version = "4.3.1";
|
2018-02-10 06:20:51 +01:00
|
|
|
|
2020-03-20 16:01:19 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
|
|
|
repo = pname;
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2020-03-20 16:01:19 +01:00
|
|
|
sha256 = "14fqp6r9rf7z6j5phbsrdxlbjak03hs8kb94b6jgcrcdxrxhy3fy";
|
2018-02-10 06:20:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ bctoolbox sqlite ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-03-20 16:01:19 +01:00
|
|
|
# Do not build static libraries
|
|
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
|
|
|
|
|
2019-01-11 08:35:06 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type";
|
|
|
|
|
2018-02-10 06:20:51 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "BZRTP is an opensource implementation of ZRTP keys exchange protocol";
|
2020-03-20 16:01:19 +01:00
|
|
|
homepage = "https://gitlab.linphone.org/BC/public/bzrtp";
|
|
|
|
# They have switched to GPLv3 on git HEAD so probably the next release will
|
|
|
|
# be GPL3.
|
2018-02-10 06:20:51 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.all;
|
2020-03-20 16:01:19 +01:00
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2018-02-10 06:20:51 +01:00
|
|
|
};
|
|
|
|
}
|