3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/olm/default.nix

29 lines
753 B
Nix
Raw Normal View History

2017-02-09 19:27:13 +00:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "olm";
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;
homepage = https://matrix.org/git/olm/about;
2019-07-01 18:13:22 +01:00
platforms = with stdenv.lib.platforms; darwin ++ linux;
2017-02-09 19:27:13 +00:00
};
src = fetchurl {
url = "https://matrix.org/git/olm/snapshot/${pname}-${version}.tar.gz";
sha256 = "1iivxjk458v9lhqgzp0c4k5azligsh9k3rk6irf9ssj29wzgjm2c";
2017-02-09 19:27:13 +00:00
};
doCheck = true;
checkTarget = "test";
# requires optimisation but memory operations are compiled with -O0
hardeningDisable = ["fortify"];
2019-07-01 18:13:22 +01:00
makeFlags = if stdenv.cc.isClang then [ "CC=cc" ] else null;
2017-02-09 19:27:13 +00:00
installFlags = "PREFIX=$(out)";
}