about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/bctoolbox
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/bctoolbox')
-rw-r--r--nixpkgs/pkgs/development/libraries/bctoolbox/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/bctoolbox/default.nix b/nixpkgs/pkgs/development/libraries/bctoolbox/default.nix
new file mode 100644
index 000000000000..f3b138d27487
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/bctoolbox/default.nix
@@ -0,0 +1,48 @@
+{ bcunit
+, cmake
+, bc-decaf
+, fetchFromGitLab
+, mbedtls_2
+, lib
+, stdenv
+}:
+
+stdenv.mkDerivation rec {
+  pname = "bctoolbox";
+  version = "5.2.98";
+
+  nativeBuildInputs = [
+    cmake
+  ];
+  buildInputs = [
+    # Made by BC
+    bcunit
+
+    # Vendored by BC
+    bc-decaf
+
+    mbedtls_2
+  ];
+
+  src = fetchFromGitLab {
+    domain = "gitlab.linphone.org";
+    owner = "public";
+    group = "BC";
+    repo = pname;
+    rev = version;
+    hash = "sha256-j1vVd9UcwmP3tGGN6NApiMyOql8vYljTqj3CKor1Ckk=";
+  };
+
+  # Do not build static libraries
+  cmakeFlags = [ "-DENABLE_STATIC=NO" "-DENABLE_STRICT=NO" ];
+
+  strictDeps = true;
+
+  meta = with lib; {
+    description = "Utilities library for Linphone";
+    homepage = "https://gitlab.linphone.org/BC/public/bctoolbox";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ raskin jluttine ];
+    platforms = platforms.linux;
+  };
+}