Merge pull request #171368 from ThibaultLemaire/update-linphone-4-4-1

linphone: Cleanup dependencies
main
7c6f434c 2 years ago committed by GitHub
commit 7bdbbba683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 70
      pkgs/applications/networking/instant-messengers/linphone/default.nix
  2. 6
      pkgs/development/libraries/belcard/default.nix
  3. 82
      pkgs/development/libraries/liblinphone/default.nix
  4. 8
      pkgs/development/libraries/lime/default.nix
  5. 37
      pkgs/development/libraries/mediastreamer/default.nix
  6. 2
      pkgs/development/libraries/mediastreamer/msopenh264.nix

@ -1,51 +1,18 @@
{ bcg729
, bctoolbox
, bcunit
{ bctoolbox
, belcard
, belle-sip
, belr
, bzrtp
, cairo
, cmake
, cyrus_sasl
, fetchFromGitLab
, fetchurl
, ffmpeg
, gdk-pixbuf
, glib
, graphviz
, gtk2
, intltool
, lib
, libexosip
, liblinphone
, libmatroska
, libnotify
, libosip
, libsoup
, libupnp
, libX11
, libxml2
, makeWrapper
, mbedtls
, mediastreamer
, mediastreamer-openh264
, minizip2
, mkDerivation
, openldap
, ortp
, pango
, pkg-config
, qtbase
, qtgraphicaleffects
, qtquickcontrols2
, qttranslations
, readline
, speex
, sqlite
, udev
, zlib
}:
# How to update Linphone? (The Qt desktop app)
@ -95,57 +62,22 @@ mkDerivation rec {
# linphone-desktop.
buildInputs = [
# Made by BC
bcg729
bctoolbox
belcard
belle-sip
belr
bzrtp
liblinphone
mediastreamer
mediastreamer-openh264
ortp
# Vendored by BC but we use upstream, might cause problems
libmatroska
cairo
cyrus_sasl
ffmpeg
gdk-pixbuf
glib
gtk2
libX11
libexosip
libnotify
libosip
libsoup
libupnp
libxml2
mbedtls
minizip2
openldap
pango
qtbase
qtgraphicaleffects
qtquickcontrols2
qttranslations
readline
speex
sqlite
udev
zlib
];
nativeBuildInputs = [
# Made by BC
bcunit
cmake
graphviz
intltool
makeWrapper
pkg-config
];
cmakeFlags = [

@ -22,8 +22,10 @@ stdenv.mkDerivation rec {
buildInputs = [ bctoolbox belr ];
nativeBuildInputs = [ cmake ];
# Do not build static libraries
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
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.";

@ -1,50 +1,20 @@
{ bcg729
, bctoolbox
, bcunit
{ bctoolbox
, belcard
, belle-sip
, belr
, bzrtp
, cairo
, cmake
, cyrus_sasl
, doxygen
, fetchFromGitLab
, ffmpeg
, gdk-pixbuf
, glib
, graphviz
, gtk2
, intltool
, jsoncpp
, libexosip
, libmatroska
, libnotify
, libosip
, libsoup
, libupnp
, libX11
, libxml2
, lime
, makeWrapper
, mbedtls
, mediastreamer
, openldap
, ortp
, pango
, pkg-config
, python3
, readline
, bc-soci
, boost
, speex
, sqlite
, lib
, stdenv
, udev
, xercesc
, xsd
, zlib
}:
stdenv.mkDerivation rec {
@ -62,69 +32,31 @@ stdenv.mkDerivation rec {
patches = [ ./use-normal-jsoncpp.patch ];
# Do not build static libraries
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
cmakeFlags = [
"-DENABLE_STATIC=NO" # Do not build static libraries
"-DENABLE_UNIT_TESTS=NO" # Do not build test executables
];
# TODO: Not sure if all these inputs are actually needed. Most of them were
# defined when liblinphone and linphone-desktop weren't separated yet, so some
# of them might not be needed for liblinphone alone.
buildInputs = [
(python3.withPackages (ps: [ ps.pystache ps.six ]))
# Made by BC
bcg729
bctoolbox
belcard
belle-sip
belr
bzrtp
lime
mediastreamer
ortp
# Vendored by BC
bc-soci
# Vendored by BC but we use upstream, might cause problems
libmatroska
cairo
cyrus_sasl
ffmpeg
gdk-pixbuf
glib
gtk2
libX11
libexosip
libnotify
libosip
libsoup
libupnp
jsoncpp
libxml2
mbedtls
openldap
pango
readline
boost
speex
(python3.withPackages (ps: [ ps.pystache ps.six ]))
sqlite
udev
xercesc
xsd
zlib
jsoncpp
];
nativeBuildInputs = [
# Made by BC
bcunit
cmake
doxygen
graphviz
intltool
makeWrapper
pkg-config
];
strictDeps = true;

@ -5,7 +5,6 @@
, lib
, bc-soci
, sqlite
, boost
, stdenv
}:
@ -31,12 +30,13 @@ stdenv.mkDerivation rec {
bc-soci
sqlite
boost
];
nativeBuildInputs = [ cmake ];
# Do not build static libraries
cmakeFlags = [ "-DENABLE_STATIC=NO" ];
cmakeFlags = [
"-DENABLE_STATIC=NO" # Do not build static libraries
"-DENABLE_UNIT_TESTS=NO" # Do not build test executables
];
meta = with lib; {
description = "End-to-end encryption library for instant messaging. Part of the Linphone project.";

@ -1,33 +1,21 @@
{ alsa-lib
, bctoolbox
{ bctoolbox
, bzrtp
, cmake
, doxygen
, fetchFromGitLab
, ffmpeg
, glew
, gsm
, intltool
, lib
, libGL
, libGLU
, libX11
, libXext
, libXv
, libmatroska
, libopus
, libpcap
, libpulseaudio
, libtheora
, libupnp
, libv4l
, libvpx
, ortp
, pkg-config
, python3
, qtbase
, qtdeclarative
, SDL
, speex
, srtp
, stdenv
@ -59,9 +47,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
cmake
doxygen
intltool
pkg-config
python3
qtbase
qtdeclarative
@ -73,28 +58,19 @@ stdenv.mkDerivation rec {
bzrtp
ortp
# Vendored by BC but we use upstream, might cause problems
libmatroska
alsa-lib
ffmpeg
glew
gsm
libGL
libGLU
libX11
libXext
libXv
libopus
libpcap
libpulseaudio
libtheora
libupnp
libv4l
libvpx
SDL
speex
srtp
# Optional
gsm # GSM audio codec
libopus # Opus audio codec
libvpx # VP8 video codec
];
strictDeps = true;
@ -104,6 +80,7 @@ stdenv.mkDerivation rec {
"-DENABLE_QT_GL=ON" # Build necessary MSQOGL plugin for Linphone desktop
"-DCMAKE_C_FLAGS=-DGIT_VERSION=\"v${version}\""
"-DENABLE_STRICT=NO" # Disable -Werror
"-DENABLE_UNIT_TESTS=NO" # Do not build test executables
];
NIX_LDFLAGS = "-lXext";

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-AqZ7tsNZw2Djgyo1JBJbT/c3eQVyEn6r3CT6DQLD/B8=";
};
nativeBuildInputs = [ autoreconfHook cmake pkg-config ];
nativeBuildInputs = [ cmake ];
buildInputs = [ mediastreamer openh264 ];
# Do not build static libraries

Loading…
Cancel
Save