libquotient: propagate required libraries, split dev output, update meta.homepage

This commit is contained in:
Sandro Jäckel 2023-10-06 21:18:36 +02:00
parent 6ef9b308ef
commit de570b1bb7
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -4,6 +4,8 @@ stdenv.mkDerivation rec {
pname = "libquotient";
version = "0.8.1.2";
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "quotient-im";
repo = "libQuotient";
@ -11,10 +13,10 @@ stdenv.mkDerivation rec {
hash = "sha256-qJTikc42sFUlb4g0sAEg6v9d4k1lhbn3MZPvghm56E8=";
};
buildInputs = [ olm openssl qtbase qtmultimedia qtkeychain ];
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ qtbase qtkeychain olm openssl qtmultimedia ];
cmakeFlags = [
"-DQuotient_ENABLE_E2EE=ON"
];
@ -28,9 +30,14 @@ stdenv.mkDerivation rec {
dontWrapQtApps = true;
postInstall = ''
# causes cyclic dependency but is not used
rm $out/share/ndk-modules/Android.mk
'';
meta = with lib; {
description = "A Qt5/Qt6 library to write cross-platform clients for Matrix";
homepage = "https://matrix.org/docs/projects/sdk/quotient";
homepage = "https://quotient-im.github.io/libQuotient/";
license = licenses.lgpl21;
maintainers = with maintainers; [ colemickens matthiasbeyer ];
};