forked from mirrors/nixpkgs
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ antlr3_4
|
|
, bctoolbox
|
|
, cmake
|
|
, fetchFromGitLab
|
|
, lib
|
|
, libantlr3c
|
|
, mbedtls
|
|
, stdenv
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "belle-sip";
|
|
version = "4.5.1";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.linphone.org";
|
|
owner = "public";
|
|
group = "BC";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0d1wf0jv9lb0s6r49i9gz5nrx8jzpkx558hywll7idma9d0mr61p";
|
|
};
|
|
|
|
nativeBuildInputs = [ antlr3_4 cmake ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
# Do not build static libraries
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
|
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
"-Wno-error=deprecated-declarations"
|
|
"-Wno-error=format-truncation"
|
|
"-Wno-error=cast-function-type"
|
|
];
|
|
|
|
propagatedBuildInputs = [ libantlr3c mbedtls bctoolbox ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://linphone.org/technical-corner/belle-sip";
|
|
description = "Modern library implementing SIP (RFC 3261) transport, transaction and dialog layers";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|