nixpkgs-suyu/pkgs/development/libraries/bctoolbox/default.nix

40 lines
1,006 B
Nix
Raw Normal View History

2020-03-20 09:31:25 +01:00
{ bcunit
, cmake
, fetchFromGitLab
, mbedtls
, stdenv
}:
2016-09-06 00:16:45 +02:00
stdenv.mkDerivation rec {
pname = "bctoolbox";
2020-03-20 09:31:25 +01:00
version = "4.3.1";
nativeBuildInputs = [ cmake bcunit ];
buildInputs = [ mbedtls ];
2020-03-20 09:31:25 +01:00
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
2019-09-09 01:38:31 +02:00
rev = version;
2020-03-20 09:31:25 +01:00
sha256 = "1y91jcrma4kjqpm6w5ahlygjsyvx7l8zjrjvq7g2n39jmw175cvs";
2016-09-06 00:16:45 +02:00
};
2020-03-20 09:31:25 +01:00
# Do not build static libraries
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
2019-12-26 17:29:16 +01:00
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
2020-03-20 09:31:25 +01:00
meta = with stdenv.lib; {
2016-09-06 00:16:45 +02:00
inherit version;
description = "Utilities library for Linphone";
2020-03-20 09:31:25 +01: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-06 00:16:45 +02:00
};
}