nixpkgs/pkgs/development/libraries/belcard/default.nix
Thibault Lemaire fe8f77c2c0 linphone: Cleanup dependencies
A lot of bloat had been accumulated through updates (e.g. with linphone
migrating from Gtk to Qt, or linphone being split to liblinphone &
linphone-desktop).

Method: Through trial and error. Delete all dependencies, try to build, try to
run, reintroduce missing dependencies.

I have tested everything I could, but it is possible that some optional
features have been silently disabled with dependencies not being found now.
(Codecs, encryption schemes, etc...)
2022-05-03 10:26:29 +02:00

37 lines
864 B
Nix

{ bctoolbox
, belr
, cmake
, fetchFromGitLab
, lib
, stdenv
}:
stdenv.mkDerivation rec {
pname = "belcard";
version = "5.1.12";
src = fetchFromGitLab {
domain = "gitlab.linphone.org";
owner = "public";
group = "BC";
repo = pname;
rev = version;
sha256 = "sha256-ZxO0Y4R04T+3K+08fEJ9krWfYSodQLrjBZYbGrKOrXI=";
};
buildInputs = [ bctoolbox belr ];
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DENABLE_STATIC=NO" # Do not build static libraries
"-DENABLE_UNIT_TESTS=NO" # Do not build test executables
];
meta = with lib; {
description = "C++ library to manipulate VCard standard format. Part of the Linphone project.";
homepage = "https://gitlab.linphone.org/BC/public/belcard";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ jluttine ];
};
}