python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / olm / default.nix
blob8220ac503e38d449c4716666c084ea6db504f767
1 { lib, stdenv, fetchFromGitLab, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "olm";
5   version = "3.2.13";
7   src = fetchFromGitLab {
8     domain = "gitlab.matrix.org";
9     owner = "matrix-org";
10     repo = pname;
11     rev = version;
12     sha256 = "sha256-s1OleVRvJRFvN9MwXT7lAjDjyHkbIkbpl/F8P/91oaU=";
13   };
15   nativeBuildInputs = [ cmake ];
17   doCheck = true;
19   postPatch = ''
20     substituteInPlace olm.pc.in \
21       --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
22       --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
23   '';
25   meta = with lib; {
26     description = "Implements double cryptographic ratchet and Megolm ratchet";
27     homepage = "https://gitlab.matrix.org/matrix-org/olm";
28     license = licenses.asl20;
29     maintainers = with maintainers; [ tilpner oxzi ];
30   };