nixpkgs/pkgs/development/libraries/bctoolbox/default.nix
2021-04-27 15:15:36 +00:00

38 lines
845 B
Nix

{ bcunit
, cmake
, fetchFromGitLab
, mbedtls
, lib, stdenv
}:
stdenv.mkDerivation rec {
pname = "bctoolbox";
version = "4.5.7";
nativeBuildInputs = [ cmake bcunit ];
buildInputs = [ mbedtls ];
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
rev = version;
sha256 = "sha256-JQ2HgFVqgO+LLXmN95ZTHyT+htCFUC3VRreKLwPYo9Y=";
};
# Do not build static libraries
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
meta = with lib; {
inherit version;
description = "Utilities library for Linphone";
homepage = "https://gitlab.linphone.org/BC/public/bctoolbox";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ raskin jluttine ];
platforms = platforms.linux;
};
}