python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libquotient / default.nix
blob0f75c8d1f4e5aa63091d936d8f1c2a74753173c8
1 { mkDerivation, lib, fetchFromGitHub, cmake, qtmultimedia }:
3 mkDerivation rec {
4   pname = "libquotient";
5   version = "0.6.11";
7   src = fetchFromGitHub {
8     owner = "quotient-im";
9     repo = "libQuotient";
10     rev = version;
11     sha256 = "sha256-FPtxeZOfChIPi4e/h/eZkByH1QL3Fn0OJxe0dnMcTRw=";
12   };
14   buildInputs = [ qtmultimedia ];
16   nativeBuildInputs = [ cmake ];
18   cmakeFlags = [
19     # we need libqtolm for this
20     "-DQuotient_ENABLE_E2EE=OFF"
21   ];
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   '';
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   };