2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "olm";
|
2020-11-06 00:33:48 +00:00
|
|
|
version = "3.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://matrix.org/git/olm/-/archive/${version}/${pname}-${version}.tar.gz";
|
2020-11-06 00:33:48 +00:00
|
|
|
sha256 = "0iacbi9iibhzifh1bk6bi5xin557lvqmbf4ccsb8drj50dbxjiyr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Implements double cryptographic ratchet and Megolm ratchet";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.asl20;
|
2020-06-18 07:06:33 +00:00
|
|
|
homepage = "https://gitlab.matrix.org/matrix-org/olm";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = with lib.platforms; darwin ++ linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|