2020-03-20 15:00:26 +00:00
|
|
|
{ antlr3_4
|
|
|
|
, bctoolbox
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
|
|
|
, jre
|
|
|
|
, 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-03-20 15:00:26 +00:00
|
|
|
# Using master branch for linphone-desktop caused a chain reaction that many
|
|
|
|
# of its dependencies needed to use master branch too.
|
|
|
|
version = "unstable-2020-02-18";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
2019-11-23 17:09:56 +00:00
|
|
|
repo = pname;
|
2020-03-20 15:00:26 +00:00
|
|
|
rev = "0dcb13416eae87edf140771b886aedaf6be8cf60";
|
|
|
|
sha256 = "0pzxk8mkkg6zsnmj1bwggbdjv864psx89gglfm51h8s501kg11fv";
|
2015-04-07 02:08:42 +01:00
|
|
|
};
|
|
|
|
|
2016-09-06 09:07:52 +01:00
|
|
|
nativeBuildInputs = [ jre 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
|
|
|
|
2019-11-23 17:09:56 +00:00
|
|
|
propagatedBuildInputs = [ antlr3_4 libantlr3c mbedtls bctoolbox ];
|
2015-04-07 02:08:42 +01:00
|
|
|
|
2019-01-11 06:48:36 +00:00
|
|
|
# Fails to build with lots of parallel jobs
|
|
|
|
enableParallelBuilding = false;
|
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-03-20 15:00:26 +00:00
|
|
|
license = licenses.gpl3;
|
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
|
|
|
};
|
|
|
|
}
|