14 isQt6 = lib.versions.major qtbase.version == "6";
16 stdenv.mkDerivation rec {
17 pname = "libquotient";
25 src = fetchFromGitHub {
26 owner = "quotient-im";
29 hash = "sha256-R9ms3sYGdHaYKUMnZyBjw5KCik05k93vlvXMRtAXh5Y=";
32 nativeBuildInputs = [ cmake ];
34 propagatedBuildInputs = [
43 "-DQuotient_ENABLE_E2EE=ON"
44 (lib.cmakeBool "BUILD_WITH_QT6" isQt6)
47 # https://github.com/quotient-im/libQuotient/issues/551
49 substituteInPlace Quotient.pc.in \
50 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
51 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
54 dontWrapQtApps = true;
57 # causes cyclic dependency but is not used
58 rm $out/share/ndk-modules/Android.mk
62 description = "Qt5/Qt6 library to write cross-platform clients for Matrix";
63 homepage = "https://quotient-im.github.io/libQuotient/";
64 license = licenses.lgpl21;
65 maintainers = with maintainers; [