1{ stdenv, fetchFromGitHub, cmake, bcunit, mbedtls }:
2
3stdenv.mkDerivation rec {
4 pname = "bctoolbox";
5 version = "0.6.0";
6
7 nativeBuildInputs = [ cmake bcunit ];
8 buildInputs = [ mbedtls ];
9
10 src = fetchFromGitHub {
11 owner = "BelledonneCommunications";
12 repo = pname;
13 rev = version;
14 sha256 = "1cxx243wyzkd4xnvpyqf97n0rjhfckpvw1vhwnbwshq3q6fra909";
15 };
16
17 NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
18
19 meta = {
20 inherit version;
21 description = "Utilities library for Linphone";
22 homepage = "https://github.com/BelledonneCommunications/bctoolbox";
23 license = stdenv.lib.licenses.gpl2Plus ;
24 maintainers = [stdenv.lib.maintainers.raskin];
25 platforms = stdenv.lib.platforms.linux;
26 };
27}