2020-03-20 15:01:19 +00:00
|
|
|
{ bctoolbox
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
|
|
|
, sqlite
|
2022-01-28 17:57:13 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-03-20 15:01:19 +00:00
|
|
|
}:
|
2018-02-10 05:20:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-20 15:01:19 +00:00
|
|
|
pname = "bzrtp";
|
2022-01-28 17:57:13 +00:00
|
|
|
version = "5.1.12";
|
2018-02-10 05:20:51 +00:00
|
|
|
|
2020-03-20 15:01:19 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
|
|
|
repo = pname;
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2022-02-11 02:14:55 +00:00
|
|
|
sha256 = "sha256-GsHVuNXzLkbKUaHtnyXAr7bR9Emc55zcmKt3RGjCMtA=";
|
2018-02-10 05:20:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ bctoolbox sqlite ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-03-20 15:01:19 +00:00
|
|
|
# Do not build static libraries
|
2022-01-28 17:57:13 +00:00
|
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" "-DCMAKE_C_FLAGS=-Wno-error=cast-function-type" ];
|
2019-01-11 07:35:06 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2022-01-28 17:57:13 +00:00
|
|
|
description = "An opensource implementation of ZRTP keys exchange protocol. Part of the Linphone project.";
|
2020-03-20 15:01:19 +00:00
|
|
|
homepage = "https://gitlab.linphone.org/BC/public/bzrtp";
|
2020-12-28 13:12:29 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2018-02-10 05:20:51 +00:00
|
|
|
platforms = platforms.all;
|
2020-03-20 15:01:19 +00:00
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2018-02-10 05:20:51 +00:00
|
|
|
};
|
|
|
|
}
|