2022-04-27 09:35:20 +00:00
|
|
|
{ bctoolbox
|
|
|
|
, belr
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
2021-03-23 19:22:30 +00:00
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, libantlr3c
|
2022-12-17 10:02:37 +00:00
|
|
|
, mbedtls_2
|
2021-03-23 19:22:30 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "belle-sip";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "5.2.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-LMbQz22ENTT27jr9tGakzNjidC5nfCuLDMZ6sFwtRKI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
# Do not build static libraries
|
|
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
2022-04-27 09:35:20 +00:00
|
|
|
"-Wno-error=cast-function-type"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-Wno-error=deprecated-declarations"
|
|
|
|
"-Wno-error=format-truncation"
|
2022-04-27 09:35:20 +00:00
|
|
|
"-Wno-error=stringop-overflow"
|
2023-02-16 17:41:37 +00:00
|
|
|
] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [
|
|
|
|
# Needed with GCC 12 but problematic with some old GCCs and probably clang
|
|
|
|
"-Wno-error=use-after-free"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
propagatedBuildInputs = [ libantlr3c mbedtls_2 bctoolbox belr ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://linphone.org/technical-corner/belle-sip";
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Modern library implementing SIP (RFC 3261) transport, transaction and dialog layers. Part of the Linphone project.";
|
2020-12-29 15:07:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|