1 { lib, stdenv, fetchFromGitLab, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitLab {
8 domain = "gitlab.matrix.org";
12 sha256 = "sha256-1mT0mcwssqe+DN502ExkcC/q3w9uBmlTil2gVJsMvvc=";
15 nativeBuildInputs = [ cmake ];
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@
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 ];