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