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.nix37
1 files changed, 37 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..655d3a5808a9
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/bctoolbox/default.nix
@@ -0,0 +1,37 @@
+{ bcunit
+, cmake
+, fetchFromGitLab
+, mbedtls
+, stdenv
+}:
+
+stdenv.mkDerivation rec {
+  pname = "bctoolbox";
+  version = "4.4.21";
+
+  nativeBuildInputs = [ cmake bcunit ];
+  buildInputs = [ mbedtls ];
+
+  src = fetchFromGitLab {
+    domain = "gitlab.linphone.org";
+    owner = "public";
+    group = "BC";
+    repo = pname;
+    rev = version;
+    sha256 = "0bfswwvvdshaahg4jd2j10f0sci8809s4khajd0m6b059zwc7y25";
+  };
+
+  # Do not build static libraries
+  cmakeFlags = [ "-DENABLE_STATIC=NO" ];
+
+  NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
+
+  meta = with stdenv.lib; {
+    inherit version;
+    description = "Utilities library for Linphone";
+    homepage = "https://gitlab.linphone.org/BC/public/bctoolbox";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ raskin jluttine ];
+    platforms = platforms.linux;
+  };
+}