nixpkgs/pkgs/development/libraries/bzrtp/default.nix
2021-05-08 18:00:58 -07:00

37 lines
836 B
Nix

{ bctoolbox
, cmake
, fetchFromGitLab
, sqlite
, lib, stdenv
}:
stdenv.mkDerivation rec {
pname = "bzrtp";
version = "4.5.10";
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
rev = version;
sha256 = "sha256-8qlCTkiRKMDODKMsa52pskBJ7pjqCDYkUJDb/5gFoKg=";
};
buildInputs = [ bctoolbox sqlite ];
nativeBuildInputs = [ cmake ];
# Do not build static libraries
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
NIX_CFLAGS_COMPILE = "-Wno-error=cast-function-type";
meta = with lib; {
description = "An opensource implementation of ZRTP keys exchange protocol";
homepage = "https://gitlab.linphone.org/BC/public/bzrtp";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ jluttine ];
};
}