nixpkgs/pkgs/development/libraries/belle-sip/default.nix

38 lines
974 B
Nix
Raw Normal View History

{ stdenv, antlr3_4, libantlr3c, jre, mbedtls, fetchFromGitHub
2016-09-06 01:07:52 -07:00
, cmake, zlib, bctoolbox
}:
2015-04-06 18:08:42 -07:00
2016-09-06 01:07:52 -07:00
stdenv.mkDerivation rec {
pname = "belle-sip";
2018-02-09 21:19:08 -08:00
version = "1.6.3";
2016-09-06 01:07:52 -07:00
src = fetchFromGitHub {
owner = "BelledonneCommunications";
repo = pname;
2019-09-08 16:38:31 -07:00
rev = version;
2018-02-09 21:19:08 -08:00
sha256 = "0q70db1klvhca1af29bm9paka3gyii5hfbzrj4178gclsg7cj8fk";
2015-04-06 18:08:42 -07:00
};
2016-09-06 01:07:52 -07:00
nativeBuildInputs = [ jre cmake ];
2015-04-06 18:08:42 -07:00
2016-09-06 01:07:52 -07:00
buildInputs = [ zlib ];
2015-04-06 18:08:42 -07:00
2019-10-29 18:29:30 -07:00
NIX_CFLAGS_COMPILE = toString [
2019-01-10 22:48:36 -08:00
"-Wno-error=deprecated-declarations"
"-Wno-error=format-truncation"
"-Wno-error=cast-function-type"
];
2015-04-06 18:08:42 -07:00
propagatedBuildInputs = [ antlr3_4 libantlr3c mbedtls bctoolbox ];
2015-04-06 18:08:42 -07:00
2019-01-10 22:48:36 -08:00
# Fails to build with lots of parallel jobs
enableParallelBuilding = false;
2015-04-06 18:08:42 -07:00
meta = with stdenv.lib; {
homepage = https://linphone.org/technical-corner/belle-sip;
description = "Modern library implementing SIP (RFC 3261) transport, transaction and dialog layers";
2015-04-06 18:08:42 -07:00
license = licenses.gpl2;
platforms = platforms.all;
};
}