mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{ bctoolbox
|
|
, belr
|
|
, cmake
|
|
, fetchFromGitLab
|
|
, lib
|
|
, libantlr3c
|
|
, mbedtls_2
|
|
, stdenv
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "belle-sip";
|
|
version = "5.2.98";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.linphone.org";
|
|
owner = "public";
|
|
group = "BC";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-PZnAB+LOlwkiJO0ICqYqn0TgqQY2KdUbgGJRFSzGxdE=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "belle_sip_tester";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|