diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/belle-sip')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/belle-sip/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/belle-sip/default.nix b/nixpkgs/pkgs/development/libraries/belle-sip/default.nix new file mode 100644 index 000000000000..72231cf6d3c3 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/belle-sip/default.nix @@ -0,0 +1,51 @@ +{ bctoolbox +, belr +, cmake +, fetchFromGitLab +, lib +, libantlr3c +, mbedtls_2 +, stdenv +, zlib +}: + +stdenv.mkDerivation rec { + pname = "belle-sip"; + version = "5.2.64"; + + src = fetchFromGitLab { + domain = "gitlab.linphone.org"; + owner = "public"; + group = "BC"; + repo = pname; + rev = version; + sha256 = "sha256-5GTKunm6q5nTlfsA5vZZ0MCaSiit+JIdWHcb2t+MLEA="; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ zlib ]; + + # Do not build static libraries + cmakeFlags = [ "-DENABLE_STATIC=NO" ]; + + env.NIX_CFLAGS_COMPILE = toString ([ + "-Wno-error=cast-function-type" + "-Wno-error=deprecated-declarations" + "-Wno-error=format-truncation" + "-Wno-error=stringop-overflow" + ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12") [ + # Needed with GCC 12 but problematic with some old GCCs and probably clang + "-Wno-error=use-after-free" + ]); + + propagatedBuildInputs = [ libantlr3c mbedtls_2 bctoolbox belr ]; + + meta = with lib; { + homepage = "https://linphone.org/technical-corner/belle-sip"; + description = "Modern library implementing SIP (RFC 3261) transport, transaction and dialog layers. Part of the Linphone project."; + license = licenses.gpl3Plus; + platforms = platforms.all; + maintainers = with maintainers; [ jluttine ]; + }; +} |