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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.3 KiB
Nix
Raw Normal View History

{ bctoolbox
, belr
, cmake
, fetchFromGitLab
2021-03-19 06:06:05 +00:00
, lib
, libantlr3c
, mbedtls_2
2021-03-19 06:06:05 +00:00
, 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";
2023-09-01 12:57:05 +00:00
version = "5.2.98";
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
rev = version;
2023-09-01 12:57:05 +00:00
hash = "sha256-PZnAB+LOlwkiJO0ICqYqn0TgqQY2KdUbgGJRFSzGxdE=";
2015-04-07 01:08:42 +00:00
};
nativeBuildInputs = [ 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" ];
env.NIX_CFLAGS_COMPILE = toString ([
"-Wno-error=cast-function-type"
2019-01-11 06:48:36 +00:00
"-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
2022-12-23 16:57:29 +00:00
"-Wno-error=use-after-free"
]);
2015-04-07 01:08:42 +00:00
propagatedBuildInputs = [ libantlr3c mbedtls_2 bctoolbox belr ];
2015-04-07 01:08:42 +00:00
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;
2015-04-07 01:08:42 +00:00
platforms = platforms.all;
maintainers = with maintainers; [ jluttine ];
2015-04-07 01:08:42 +00:00
};
}