2020-03-20 01:31:25 -07:00
|
|
|
{ bcunit
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
|
|
|
, mbedtls
|
2021-01-21 09:00:13 -08:00
|
|
|
, lib, stdenv
|
2020-03-20 01:31:25 -07:00
|
|
|
}:
|
2019-11-23 08:30:46 -08:00
|
|
|
|
2016-09-05 15:16:45 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-11-23 08:30:46 -08:00
|
|
|
pname = "bctoolbox";
|
2021-04-27 08:15:36 -07:00
|
|
|
version = "4.5.7";
|
2019-11-23 08:30:46 -08:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake bcunit ];
|
|
|
|
buildInputs = [ mbedtls ];
|
|
|
|
|
2020-03-20 01:31:25 -07:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
2019-11-23 08:30:46 -08:00
|
|
|
repo = pname;
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2021-04-27 08:15:36 -07:00
|
|
|
sha256 = "sha256-JQ2HgFVqgO+LLXmN95ZTHyT+htCFUC3VRreKLwPYo9Y=";
|
2016-09-05 15:16:45 -07:00
|
|
|
};
|
|
|
|
|
2020-03-20 01:31:25 -07:00
|
|
|
# Do not build static libraries
|
|
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
|
|
|
|
|
2019-12-26 08:29:16 -08:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
|
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2016-09-05 15:16:45 -07:00
|
|
|
inherit version;
|
2019-11-23 08:30:46 -08:00
|
|
|
description = "Utilities library for Linphone";
|
2020-03-20 01:31:25 -07:00
|
|
|
homepage = "https://gitlab.linphone.org/BC/public/bctoolbox";
|
2020-12-28 04:36:01 -08:00
|
|
|
license = licenses.gpl3Plus;
|
2020-03-20 01:31:25 -07:00
|
|
|
maintainers = with maintainers; [ raskin jluttine ];
|
|
|
|
platforms = platforms.linux;
|
2016-09-05 15:16:45 -07:00
|
|
|
};
|
|
|
|
}
|