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