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

53 lines
1.3 KiB
Nix
Raw Normal View History

{ antlr3_4
, bctoolbox
, cmake
, fetchFromGitLab
, jre
, libantlr3c
, mbedtls
, stdenv
, zlib
2016-09-06 08:07:52 +00:00
}:
2015-04-07 01:08:42 +00:00
2016-09-06 08:07:52 +00:00
stdenv.mkDerivation rec {
pname = "belle-sip";
# 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";
repo = pname;
rev = "0dcb13416eae87edf140771b886aedaf6be8cf60";
sha256 = "0pzxk8mkkg6zsnmj1bwggbdjv864psx89gglfm51h8s501kg11fv";
2015-04-07 01:08:42 +00:00
};
2016-09-06 08:07:52 +00:00
nativeBuildInputs = [ jre cmake ];
2015-04-07 01:08:42 +00:00
2016-09-06 08:07:52 +00:00
buildInputs = [ zlib ];
2015-04-07 01:08:42 +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 01:08:42 +00:00
propagatedBuildInputs = [ antlr3_4 libantlr3c mbedtls bctoolbox ];
2015-04-07 01:08:42 +00:00
2019-01-11 06:48:36 +00:00
# Fails to build with lots of parallel jobs
enableParallelBuilding = false;
2015-04-07 01:08:42 +00: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";
license = licenses.gpl3;
2015-04-07 01:08:42 +00:00
platforms = platforms.all;
maintainers = with maintainers; [ jluttine ];
2015-04-07 01:08:42 +00:00
};
}