summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2020-03-20 17:00:54 +0200
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2020-03-28 11:25:29 +0200
commit8a236c60a9a289f1d0b91dab7e3dfcca494f600c (patch)
treec739449e7808419e2568567c0a30ef4b6b0a4b69
parent9bd261213ba5e8de508df67360a0fe186681c44d (diff)
downloadnixpkgs-8a236c60a9a289f1d0b91dab7e3dfcca494f600c.tar
nixpkgs-8a236c60a9a289f1d0b91dab7e3dfcca494f600c.tar.gz
nixpkgs-8a236c60a9a289f1d0b91dab7e3dfcca494f600c.tar.bz2
nixpkgs-8a236c60a9a289f1d0b91dab7e3dfcca494f600c.tar.lz
nixpkgs-8a236c60a9a289f1d0b91dab7e3dfcca494f600c.tar.xz
nixpkgs-8a236c60a9a289f1d0b91dab7e3dfcca494f600c.tar.zst
nixpkgs-8a236c60a9a289f1d0b91dab7e3dfcca494f600c.zip
belr: 0.1.3 -> unstable-2020-03-09
-rw-r--r--pkgs/development/libraries/belr/default.nix35
1 files changed, 23 insertions, 12 deletions
diff --git a/pkgs/development/libraries/belr/default.nix b/pkgs/development/libraries/belr/default.nix
index f0557b0379f..90067e493a1 100644
--- a/pkgs/development/libraries/belr/default.nix
+++ b/pkgs/development/libraries/belr/default.nix
@@ -1,24 +1,35 @@
-{ stdenv, cmake, fetchFromGitHub, bctoolbox }:
+{ bctoolbox
+, cmake
+, fetchFromGitLab
+, stdenv
+}:
 
 stdenv.mkDerivation rec {
-  baseName = "belr";
-  version = "0.1.3";
-  name = "${baseName}-${version}";
+  pname = "belr";
+  # Using master branch for linphone-desktop caused a chain reaction that many
+  # of its dependencies needed to use master branch too.
+  version = "unstable-2020-03-09";
 
-  src = fetchFromGitHub {
-    owner = "BelledonneCommunications";
-    repo = baseName;
-    rev = version;
-    sha256 = "0mf8lsyq1z3b5p47c00lnwc8n7v9nzs1fd2g9c9hnz6fjd2ka44w";
+  src = fetchFromGitLab {
+    domain = "gitlab.linphone.org";
+    owner = "public";
+    group = "BC";
+    repo = pname;
+    rev = "326d030ca9db12525c2a6d2a65f386f36f3c2ed5";
+    sha256 = "1cdblb9smncq3al0crqp5651b02k1g6whlw1ib769p61gad0rs3v";
   };
 
   buildInputs = [ bctoolbox ];
   nativeBuildInputs = [ cmake ];
 
-  meta = with stdenv.lib;{
+  # Do not build static libraries
+  cmakeFlags = [ "-DENABLE_STATIC=NO" ];
+
+  meta = with stdenv.lib; {
     description = "Belr is Belledonne Communications' language recognition library";
-    homepage = https://github.com/BelledonneCommunications/belr;
-    license = licenses.lgpl21;
+    homepage = "https://gitlab.linphone.org/BC/public/belr";
+    license = licenses.gpl3;
     platforms = platforms.all;
+    maintainers = with maintainers; [ jluttine ];
   };
 }