2017-02-09 20:27:13 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "olm-${version}";
|
2018-12-15 06:32:34 +01:00
|
|
|
version = "3.0.0";
|
2017-02-09 20:27:13 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Implements double cryptographic ratchet and Megolm ratchet";
|
|
|
|
license = stdenv.lib.licenses.asl20;
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://matrix.org/git/olm/about;
|
2018-07-11 11:28:39 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-02-09 20:27:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://matrix.org/git/olm/snapshot/${name}.tar.gz";
|
2018-12-15 06:32:34 +01:00
|
|
|
sha256 = "1iivxjk458v9lhqgzp0c4k5azligsh9k3rk6irf9ssj29wzgjm2c";
|
2017-02-09 20:27:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
2018-05-28 11:09:25 +02:00
|
|
|
# requires optimisation but memory operations are compiled with -O0
|
|
|
|
hardeningDisable = ["fortify"];
|
|
|
|
|
2017-02-09 20:27:13 +01:00
|
|
|
installFlags = "PREFIX=$(out)";
|
|
|
|
}
|