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