1{ bcunit
2, cmake
3, bc-decaf
4, fetchFromGitLab
5, mbedtls_2
6, lib
7, stdenv
8}:
9
10stdenv.mkDerivation rec {
11 pname = "bctoolbox";
12 version = "5.2.109";
13
14 nativeBuildInputs = [
15 cmake
16 ];
17 buildInputs = [
18 # Made by BC
19 bcunit
20
21 # Vendored by BC
22 bc-decaf
23
24 mbedtls_2
25 ];
26
27 src = fetchFromGitLab {
28 domain = "gitlab.linphone.org";
29 owner = "public";
30 group = "BC";
31 repo = pname;
32 rev = version;
33 hash = "sha256-OwwSGzMFwR2ajUUgAy7ea/Q2pWxn3DO72W7ukcjBJnU=";
34 };
35
36 # Do not build static libraries
37 cmakeFlags = [ "-DENABLE_STATIC=NO" "-DENABLE_STRICT=NO" ];
38
39 strictDeps = true;
40
41 meta = with lib; {
42 description = "Utilities library for Linphone";
43 mainProgram = "bctoolbox_tester";
44 homepage = "https://gitlab.linphone.org/BC/public/bctoolbox";
45 license = licenses.gpl3Plus;
46 maintainers = with maintainers; [ raskin jluttine ];
47 platforms = platforms.linux;
48 };
49}