Merge pull request #211860 from peterhoeg/u/libquotient_0_7_1

libquotient: 0.7.0 -> 0.7.1
This commit is contained in:
Jonas Heinrich 2023-01-22 09:43:50 +01:00 committed by GitHub
commit 388f8c6d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,24 @@
{ mkDerivation, lib, fetchFromGitHub, cmake, qtmultimedia, qtkeychain }:
{ mkDerivation, lib, fetchFromGitHub, cmake, olm, openssl, qtmultimedia, qtkeychain }:
mkDerivation rec {
pname = "libquotient";
version = "0.7.0";
version = "0.7.1";
src = fetchFromGitHub {
owner = "quotient-im";
repo = "libQuotient";
rev = version;
sha256 = "sha256-9NAWphpAI7/qWDMjsx26s+hOaQh0hbzjePfESC7PtXc=";
hash = "sha256-3xnv1dcyeX3Kl5EH2Tlf6nXobLG1zXsFmYstnvmSAXA=";
};
buildInputs = [ qtmultimedia qtkeychain ];
buildInputs = [ olm openssl qtmultimedia qtkeychain ];
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DQuotient_ENABLE_E2EE=ON"
];
# https://github.com/quotient-im/libQuotient/issues/551
postPatch = ''
substituteInPlace Quotient.pc.in \
@ -23,7 +27,7 @@ mkDerivation rec {
'';
meta = with lib; {
description = "A Qt5 library to write cross-platform clients for Matrix";
description = "A Qt5/Qt6 library to write cross-platform clients for Matrix";
homepage = "https://matrix.org/docs/projects/sdk/quotient";
license = licenses.lgpl21;
maintainers = with maintainers; [ colemickens ];