nixpkgs/pkgs/development/libraries/olm/default.nix

29 lines
765 B
Nix
Raw Normal View History

2017-02-09 19:27:13 +00:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "olm";
2019-11-15 14:18:15 +00:00
version = "3.1.4";
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";
sha256 = "0f7azjxc77n4ib9nj3cwyk3vhk8r2dsyf7id6nvqyxqxwxn95a8w";
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)";
2019-11-15 14:18:15 +00:00
meta = {
description = "Implements double cryptographic ratchet and Megolm ratchet";
license = stdenv.lib.licenses.asl20;
homepage = https://matrix.org/git/olm/about;
platforms = with stdenv.lib.platforms; darwin ++ linux;
};
2017-02-09 19:27:13 +00:00
}