2020-03-20 16:01:19 +01:00
|
|
|
{ bctoolbox
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
|
|
|
, sqlite
|
2021-01-21 18:00:13 +01:00
|
|
|
, lib, stdenv
|
2020-03-20 16:01:19 +01:00
|
|
|
}:
|
2018-02-10 06:20:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-20 16:01:19 +01:00
|
|
|
pname = "bzrtp";
|
2021-07-09 16:34:06 +02:00
|
|
|
version = "5.0.0";
|
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;
|
2021-07-09 16:34:06 +02:00
|
|
|
sha256 = "sha256-cagRN0DQw1/efCuMWngcF04SE9bViHANaNsQNKB5txA=";
|
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";
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-10-26 05:08:40 +01:00
|
|
|
description = "An opensource implementation of ZRTP keys exchange protocol";
|
2020-03-20 16:01:19 +01:00
|
|
|
homepage = "https://gitlab.linphone.org/BC/public/bzrtp";
|
2020-12-28 14:12:29 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2018-02-10 06:20:51 +01:00
|
|
|
platforms = platforms.all;
|
2020-03-20 16:01:19 +01:00
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2018-02-10 06:20:51 +01:00
|
|
|
};
|
|
|
|
}
|