nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 bctoolbox,
3 cmake,
4 fetchFromGitLab,
5 lib,
6 stdenv,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "belr";
11 version = "5.2.98";
12
13 src = fetchFromGitLab {
14 domain = "gitlab.linphone.org";
15 owner = "public";
16 group = "BC";
17 repo = "belr";
18 rev = version;
19 hash = "sha256-4keVUAsTs1DAhOfV71VD28I0PEHnyvW95blplY690LY=";
20 };
21
22 buildInputs = [ bctoolbox ];
23 nativeBuildInputs = [ cmake ];
24
25 # Do not build static libraries
26 cmakeFlags = [ "-DENABLE_STATIC=NO" ];
27
28 meta = with lib; {
29 description = "Belledonne Communications' language recognition library. Part of the Linphone project";
30 homepage = "https://gitlab.linphone.org/BC/public/belr";
31 license = licenses.gpl3Plus;
32 platforms = platforms.all;
33 maintainers = with maintainers; [ jluttine ];
34 };
35}