2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake }:
|
2017-02-09 19:27:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "olm";
|
2020-11-03 20:51:51 +00:00
|
|
|
version = "3.2.1";
|
2017-02-09 19:27:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-15 14:18:15 +00:00
|
|
|
url = "https://matrix.org/git/olm/-/archive/${version}/${pname}-${version}.tar.gz";
|
2020-11-03 20:51:51 +00:00
|
|
|
sha256 = "0iacbi9iibhzifh1bk6bi5xin557lvqmbf4ccsb8drj50dbxjiyr";
|
2017-02-09 19:27:13 +00:00
|
|
|
};
|
|
|
|
|
2020-01-07 23:01:53 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-05-28 09:09:25 +00:00
|
|
|
|
2020-01-07 23:01:53 +00:00
|
|
|
doCheck = true;
|
2019-11-15 14:18:15 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Implements double cryptographic ratchet and Megolm ratchet";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.asl20;
|
2020-06-17 09:15:49 +00:00
|
|
|
homepage = "https://gitlab.matrix.org/matrix-org/olm";
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = with lib.platforms; darwin ++ linux;
|
2019-11-15 14:18:15 +00:00
|
|
|
};
|
2017-02-09 19:27:13 +00:00
|
|
|
}
|