2020-04-24 23:36:52 +00:00
|
|
|
{ bcunit
|
|
|
|
, cmake
|
2022-04-27 09:35:20 +00:00
|
|
|
, bc-decaf
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitLab
|
2022-12-17 10:02:37 +00:00
|
|
|
, mbedtls_2
|
2022-04-27 09:35:20 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bctoolbox";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "5.2.16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
# Made by BC
|
|
|
|
bcunit
|
|
|
|
|
|
|
|
# Vendored by BC
|
|
|
|
bc-decaf
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
mbedtls_2
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-M2apFibqSKp8ojXl82W+vQb7CUxdbWsmw8PLL/ByYuM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Do not build static libraries
|
2022-04-27 09:35:20 +00:00
|
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" "-DENABLE_STRICT=NO" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utilities library for Linphone";
|
|
|
|
homepage = "https://gitlab.linphone.org/BC/public/bctoolbox";
|
2020-12-29 15:07:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ raskin jluttine ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|