nixpkgs/pkgs/development/libraries/bzrtp/default.nix
2021-04-02 11:03:41 +03:00

37 lines
836 B
Nix

{ bctoolbox
, cmake
, fetchFromGitLab
, sqlite
, lib, stdenv
}:
stdenv.mkDerivation rec {
pname = "bzrtp";
version = "4.5.1";
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
rev = version;
sha256 = "1a500ncgznwha0j3c27ak3p4jh5jm6fnnb531k7c0a4i91745agj";
};
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 ];
};
}