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
|
|
|
|
, mbedtls
|
2021-03-23 19:22:30 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "belle-sip";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "linphone-4.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "44d5977570280763ee1fecdb920736715bad58a3";
|
|
|
|
sha256 = "sha256-w++v3YlDZfpCHAbUQA/RftjRNGkz9J/zYoxZqRgtvnA=";
|
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" ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
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"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [ libantlr3c mbedtls 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 ];
|
|
|
|
};
|
|
|
|
}
|