20 stdenv.mkDerivation rec {
21 pname = "liblinphone";
24 src = fetchFromGitLab {
25 domain = "gitlab.linphone.org";
30 hash = "sha256-kQZePMa7MTaSJLEObM8khfSFYLqhlgTcVyKfTPLwKYU=";
34 # zxing-cpp 2.0+ requires C++ 17
35 # Manual backport as upstream ran formatters in the meantime
36 ./backport-cpp17.patch
40 substituteInPlace src/CMakeLists.txt \
41 --replace "jsoncpp_object" "jsoncpp" \
42 --replace "jsoncpp_static" "jsoncpp"
46 "-DENABLE_STATIC=NO" # Do not build static libraries
47 "-DENABLE_UNIT_TESTS=NO" # Do not build test executables
48 "-DENABLE_STRICT=NO" # Do not build with -Werror
71 (python3.withPackages (ps: [
79 # Some grammar files needed to be copied too from some dependencies. I suppose
80 # if one define a dependency in such a way that its share directory is found,
81 # then this copying would be unnecessary. Instead of actually copying these
82 # files, create a symlink.
84 mkdir -p $out/share/belr/grammars
85 ln -s ${belcard}/share/belr/grammars/* $out/share/belr/grammars/
89 homepage = "https://www.linphone.org/technical-corner/liblinphone";
90 description = "Library for SIP calls and instant messaging";
91 license = licenses.gpl3Plus;
92 platforms = platforms.linux;
93 maintainers = with maintainers; [ jluttine ];