2020-03-20 15:00:26 +00:00
|
|
|
{ antlr3_4
|
|
|
|
, bctoolbox
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
|
|
|
, libantlr3c
|
|
|
|
, mbedtls
|
|
|
|
, stdenv
|
|
|
|
, zlib
|
2016-09-06 09:07:52 +01:00
|
|
|
}:
|
2015-04-07 02:08:42 +01:00
|
|
|
|
2016-09-06 09:07:52 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-11-23 17:09:56 +00:00
|
|
|
pname = "belle-sip";
|
2020-12-28 13:10:22 +00:00
|
|
|
version = "4.4.21";
|
2020-03-20 15:00:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
2019-11-23 17:09:56 +00:00
|
|
|
repo = pname;
|
2020-12-07 18:10:51 +00:00
|
|
|
rev = version;
|
2020-12-28 13:10:22 +00:00
|
|
|
sha256 = "0ylv1jsqnfhw23i6p3lfqqzw48lwii8zwkq3y34q0hhnngn26iiw";
|
2015-04-07 02:08:42 +01:00
|
|
|
};
|
|
|
|
|
2020-12-28 13:10:22 +00:00
|
|
|
nativeBuildInputs = [ antlr3_4 cmake ];
|
2015-04-07 02:08:42 +01:00
|
|
|
|
2016-09-06 09:07:52 +01:00
|
|
|
buildInputs = [ zlib ];
|
2015-04-07 02:08:42 +01:00
|
|
|
|
2020-03-20 15:00:26 +00:00
|
|
|
# Do not build static libraries
|
|
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
|
|
|
|
|
2019-10-30 01:29:30 +00:00
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
2019-01-11 06:48:36 +00:00
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
"-Wno-error=format-truncation"
|
|
|
|
"-Wno-error=cast-function-type"
|
|
|
|
];
|
2015-04-07 02:08:42 +01:00
|
|
|
|
2020-12-07 18:10:51 +00:00
|
|
|
propagatedBuildInputs = [ libantlr3c mbedtls bctoolbox ];
|
2015-04-07 02:08:42 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-20 15:00:26 +00:00
|
|
|
homepage = "https://linphone.org/technical-corner/belle-sip";
|
2019-11-23 17:09:56 +00:00
|
|
|
description = "Modern library implementing SIP (RFC 3261) transport, transaction and dialog layers";
|
2020-12-28 13:10:22 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2015-04-07 02:08:42 +01:00
|
|
|
platforms = platforms.all;
|
2020-03-20 15:00:26 +00:00
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2015-04-07 02:08:42 +01:00
|
|
|
};
|
|
|
|
}
|