2023-02-02 18:25:31 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, olm, openssl, qtmultimedia, qtkeychain }:
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "libquotient";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.7.1";
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "quotient-im";
|
|
|
|
repo = "libQuotient";
|
|
|
|
rev = version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-3xnv1dcyeX3Kl5EH2Tlf6nXobLG1zXsFmYstnvmSAXA=";
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildInputs = [ olm openssl qtmultimedia qtkeychain ];
|
2020-05-03 17:38:23 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DQuotient_ENABLE_E2EE=ON"
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
# https://github.com/quotient-im/libQuotient/issues/551
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Quotient.pc.in \
|
|
|
|
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
|
|
|
|
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
|
|
|
'';
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
description = "A Qt5/Qt6 library to write cross-platform clients for Matrix";
|
2020-05-03 17:38:23 +00:00
|
|
|
homepage = "https://matrix.org/docs/projects/sdk/quotient";
|
|
|
|
license = licenses.lgpl21;
|
2021-01-05 17:05:55 +00:00
|
|
|
maintainers = with maintainers; [ colemickens ];
|
2020-05-03 17:38:23 +00:00
|
|
|
};
|
|
|
|
}
|