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";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "5.1.17";
|
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;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-p1rpFFMCYG/c35lqQT673j/Uicxe+PLhaktQfM6uF8Y=";
|
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;
|
|
|
|
};
|
|
|
|
}
|