nixpkgs/pkgs/development/libraries/bctoolbox/default.nix
2020-03-28 11:25:29 +02:00

40 lines
1006 B
Nix

{ bcunit
, cmake
, fetchFromGitLab
, mbedtls
, stdenv
}:
stdenv.mkDerivation rec {
pname = "bctoolbox";
version = "4.3.1";
nativeBuildInputs = [ cmake bcunit ];
buildInputs = [ mbedtls ];
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
rev = version;
sha256 = "1y91jcrma4kjqpm6w5ahlygjsyvx7l8zjrjvq7g2n39jmw175cvs";
};
# Do not build static libraries
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
meta = with stdenv.lib; {
inherit version;
description = "Utilities library for Linphone";
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;
};
}