diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libquotient')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libquotient/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libquotient/default.nix b/nixpkgs/pkgs/development/libraries/libquotient/default.nix new file mode 100644 index 000000000000..6300ece17127 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libquotient/default.nix @@ -0,0 +1,37 @@ +{ stdenv, lib, fetchFromGitHub, cmake, olm, openssl, qtbase, qtmultimedia, qtkeychain }: + +stdenv.mkDerivation rec { + pname = "libquotient"; + version = "0.8.1.1"; + + src = fetchFromGitHub { + owner = "quotient-im"; + repo = "libQuotient"; + rev = version; + hash = "sha256-WNLwO2w8FYy12BeqPuiS0wg3fUMwTxfrIF1QwcjE9yQ="; + }; + + buildInputs = [ olm openssl qtbase qtmultimedia qtkeychain ]; + + nativeBuildInputs = [ cmake ]; + + cmakeFlags = [ + "-DQuotient_ENABLE_E2EE=ON" + ]; + + # 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@ + ''; + + dontWrapQtApps = true; + + meta = with lib; { + 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 matthiasbeyer ]; + }; +} |