2019-11-23 17:09:56 +00:00
|
|
|
{ stdenv, antlr3_4, libantlr3c, jre, mbedtls, fetchFromGitHub
|
2016-09-06 09:07:52 +01:00
|
|
|
, cmake, zlib, bctoolbox
|
|
|
|
}:
|
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";
|
2018-02-10 05:19:08 +00:00
|
|
|
version = "1.6.3";
|
2016-09-06 09:07:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BelledonneCommunications";
|
2019-11-23 17:09:56 +00:00
|
|
|
repo = pname;
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2018-02-10 05:19:08 +00:00
|
|
|
sha256 = "0q70db1klvhca1af29bm9paka3gyii5hfbzrj4178gclsg7cj8fk";
|
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
|
|
|
|
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; {
|
2019-11-23 17:09:56 +00:00
|
|
|
homepage = https://linphone.org/technical-corner/belle-sip;
|
|
|
|
description = "Modern library implementing SIP (RFC 3261) transport, transaction and dialog layers";
|
2015-04-07 02:08:42 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|