lol
1{ mkDerivation, lib, fetchFromGitHub, cmake, qtmultimedia }:
2
3mkDerivation rec {
4 pname = "libquotient";
5 version = "0.6.11";
6
7 src = fetchFromGitHub {
8 owner = "quotient-im";
9 repo = "libQuotient";
10 rev = version;
11 sha256 = "sha256-FPtxeZOfChIPi4e/h/eZkByH1QL3Fn0OJxe0dnMcTRw=";
12 };
13
14 buildInputs = [ qtmultimedia ];
15
16 nativeBuildInputs = [ cmake ];
17
18 cmakeFlags = [
19 # we need libqtolm for this
20 "-DQuotient_ENABLE_E2EE=OFF"
21 ];
22
23 # https://github.com/quotient-im/libQuotient/issues/551
24 postPatch = ''
25 substituteInPlace Quotient.pc.in \
26 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
27 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
28 '';
29
30 meta = with lib; {
31 description = "A Qt5 library to write cross-platform clients for Matrix";
32 homepage = "https://matrix.org/docs/projects/sdk/quotient";
33 license = licenses.lgpl21;
34 maintainers = with maintainers; [ colemickens ];
35 };
36}