2020-03-20 08:31:25 +00:00
|
|
|
{ bcunit
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitLab
|
|
|
|
, mbedtls
|
|
|
|
, stdenv
|
|
|
|
}:
|
2019-11-23 16:30:46 +00:00
|
|
|
|
2016-09-05 23:16:45 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-11-23 16:30:46 +00:00
|
|
|
pname = "bctoolbox";
|
2020-06-30 23:50:17 +01:00
|
|
|
version = "4.4.0";
|
2019-11-23 16:30:46 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake bcunit ];
|
|
|
|
buildInputs = [ mbedtls ];
|
|
|
|
|
2020-03-20 08:31:25 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.linphone.org";
|
|
|
|
owner = "public";
|
|
|
|
group = "BC";
|
2019-11-23 16:30:46 +00:00
|
|
|
repo = pname;
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2020-06-30 23:50:17 +01:00
|
|
|
sha256 = "1r3ymwk10ry6mz4zd08q7l5msq7h15931l7f0clw2siqs8r81x7c";
|
2016-09-05 23:16:45 +01:00
|
|
|
};
|
|
|
|
|
2020-03-20 08:31:25 +00:00
|
|
|
# Do not build static libraries
|
|
|
|
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
|
|
|
|
|
2019-12-26 16:29:16 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
|
|
|
|
|
2020-03-20 08:31:25 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-09-05 23:16:45 +01:00
|
|
|
inherit version;
|
2019-11-23 16:30:46 +00:00
|
|
|
description = "Utilities library for Linphone";
|
2020-03-20 08:31:25 +00:00
|
|
|
homepage = "https://gitlab.linphone.org/BC/public/bctoolbox";
|
|
|
|
# Still using GPLv2 but as the rest of the Linphone projects have switched
|
|
|
|
# to GPLv3, this might too, so check this when bumping the version number.
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin jluttine ];
|
|
|
|
platforms = platforms.linux;
|
2016-09-05 23:16:45 +01:00
|
|
|
};
|
|
|
|
}
|