diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/belle-sip')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/belle-sip/default.nix | 46 |
1 files changed, 46 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..8a028b5e0a06 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/belle-sip/default.nix @@ -0,0 +1,46 @@ +{ antlr3_4 +, bctoolbox +, cmake +, fetchFromGitLab +, libantlr3c +, mbedtls +, stdenv +, zlib +}: + +stdenv.mkDerivation rec { + pname = "belle-sip"; + version = "4.4.21"; + + src = fetchFromGitLab { + domain = "gitlab.linphone.org"; + owner = "public"; + group = "BC"; + repo = pname; + rev = version; + sha256 = "0ylv1jsqnfhw23i6p3lfqqzw48lwii8zwkq3y34q0hhnngn26iiw"; + }; + + 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 stdenv.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 ]; + }; +} |